...

View Full Version : Help Coding Please



sincityharley
12-29-2006, 01:42 AM
I have got this javascript working great as far as it opening in a new window. I am trying to get it to open in a specific size though almost like a popup. Can anyone help?


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
var s = selObj.options[selObj.selectedIndex].value;
window.open(s);
if (restore) selObj.selectedIndex=0;
}
//-->
</script>


</head>

<body>
<table width="100%" border="3">
<tr>
<td><form name="form1">
<select name="Internal Messaging" onChange="MM_jumpMenu('parent',this,1)">
<option>Internal Messaging</option>
<option value="URL">TEST
Internal Alert</option>
<option value="URL">TEST
Internal Announcement</option>
<option value="URL">TEST
Internal Email</option>
</select>
</form></td>

david_kw
12-29-2006, 02:20 AM
Here is a link that might be useful. Look at the examples.

http://www.javascript-coder.com/window-popup/javascript-window-open.phtml

david_kw

mrizwan
12-30-2006, 12:06 AM
A simple syntax for use is

myRef = window.open(''+self.location,'mywin', 'left=20, top=20, width=500, height=500, toolbar=1, resizable=0');

for more details see http://www.javascripter.net/faq/openinga.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum