[thelist] opening sized window from jump menu
Jay Turley
jay at weberrific.org
Mon Aug 21 12:09:43 CDT 2000
> -----Original Message-----
> From: Suellen Stringer-Hye [mailto:Stringers at LIBRARY.Vanderbilt.edu]
> Sent: Monday, August 21, 2000 1:02 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] opening sized window from jump menu
>
>
> Hi,
>
> I have a jump menu from which I'd like each menu item to open a
> new window that I can size. I have figured out the javascript to open
> a new window but have tried every way I can think of to size it to
> no effect. Do any of you know how to do this? I promised this as
> a feature of a website to be launched Wednesday with no idea that
> it would be so problematic!
> Any help would be more than greatly appreciated.
>
> Thanks in advance,
> Suellen
Okay, try this:
<html>
<head>
<title>Untitled</title>
<script language="javascript" type="text/javascript">
function openWin() {
var newURL=document.nav.url.options[document.nav.url.selectedIndex].value;
window.open(newURL,'','height=200,width=150,resizeable=1');
}
</script>
</head>
<body>
<form name="nav">
<select name="url" onChange="openWin()">
<option value="Hi">Hi</option>
<option value="Hello">Hello</option>
</select>
</form>
</body>
</html>
- Jay Turley ---------------------------------------------------------
http://www.weberrific.org
"Any sufficiently advanced magic is indistinguishable from technology"
More information about the thelist
mailing list