| Author |
Message / Information |
thardferrionfreak

Quote | Reply |
| please help posted on: 9/15/2004 8:53:55 PM
<html> <head> <title>testing</title>
</head> <body>
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function formHandler(form){ var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; } // End --> </SCRIPT> <form name="form" target="_blank"> <select name="site" size=1> <option value="">Click to select <option value="http://www.trumpets.shyper.com/">home <option value="http://www.trumpets.shyper.com/test.html" >test
</select> <input type=button value="Go!" onClick="javascript:formHandler(this)"> </form> <br><br>
</body>
can somone tell me how to open these links into a new window? |
BLauritson

Quote | Reply |
|
please help
replied on: 9/16/2004 6:06:26 AM
Replace quote: window.location.href = URL;
with quote: window.open(URL);
|
thardferrionfreak

Quote | Reply |
|
please help
replied on: 9/16/2004 4:49:30 PM
thank you so much BLauritson, I feel like an idiot for over looking that.
|
BLauritson

Quote | Reply |
|
please help
replied on: 9/17/2004 6:06:55 AM
Heh heh, it's easy to make simple mistakes like that. We all do it
|