Click to See Complete Forum and Search --> : Launching Another Page
Rob Petti
01-25-2001, 11:13 AM
I have a dropdown combo and on the OnChange event in VbScript want to launch
another URL. Is there a launch command or some sort of Html tag?
Thanks,
Rob
skrobism
01-25-2001, 12:58 PM
I am not sure what your VbScript looks like but in HTML if you want to launch
another browser with
a new URL you need to use the TARGET="framename" attribute. This is usually
used with frames
but if you use a framename of "_new", you should get a new browser window
with the specified URL.
The HTML looks like this.
<a href="http://www.newurlhere.com" target="_new">Thingy to be clicked</a>
But I don't know what the VbScript would look like. I hope that helps.
-Mark
"Rob Petti" <robert.pettigrew@firstunion.com> wrote:
>
>I have a dropdown combo and on the OnChange event in VbScript want to launch
>another URL. Is there a launch command or some sort of Html tag?
>
>Thanks,
>
>Rob
Rob,
Try this:
//////////////////////////////////////////////////////////////
<html>
<head>
<script language="vbscript">
Sub test
window.open "pagename", "targetname"
End Sub
</script>
</head>
<body>
<select onChange="test">
<option>1
<option>2
</select>
</body>
</html>
//////////////////////////////////////////////////////////////
Just put the filename in the appropriate place. For a target name you can
use:
"_top" : opens in current window
"_blank" : opens in new window
You can also use any other target name such as "mywindow". If the user clicks
on this link twice, the first time a new window will pop up but the second
time (assuming they didn't close the first popup) it will open in the original
popup window because you gave it a specific name.
Hope that helps,
Kent
"Rob Petti" <robert.pettigrew@firstunion.com> wrote:
>
>I have a dropdown combo and on the OnChange event in VbScript want to launch
>another URL. Is there a launch command or some sort of Html tag?
>
>Thanks,
>
>Rob
devx.com
Copyright Internet.com Inc. All Rights Reserved