Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening Html page based on Combo Value

Status
Not open for further replies.

Aqif

Programmer
Apr 27, 2002
240
AU
Hi :)

Is it possible to open a html page based on combo box value. I've got values in Combo box like Rings, Bracelets etc.

I want to do something like thta If I choose Rings from Combo box and then press view the it should open Rings.html or I can also prefer it to open automatically not even requiring view button to be pressed.

Any ideas?

Cheers!
Aqif
 
thread256-231846 DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Hi all,

Thats a REALLY large script, here is a smaller one:

<html>
<head>
<script language=&quot;JavaScript&quot;>
<!--
function GoTo(URL) {self.location = URL;}
//-->
</script>
</head>
<body>
<select onChange=&quot;GoTo(this.value);&quot;>
<option value=&quot; Altavista
<option value=&quot; HotBot
<option value=&quot; Funny Idea
<option value=&quot; My Site
</select>
</body>
</html>

Test it if it's to your liking and good luck,
[bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
That is much nicer.

Note, it is an onchange event so add one <option> with no value. The above example would not beable to go to the first link because it won't be changing to it.

Great small script. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Good point there Deziner, I forgot to mention that !!!
Nice that you like my script anyway :) :) :) :) :) [bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top