|
|
gollum
regular
Reg'd: Wed
Posts: 278
|
Re: form link help
Thu May 20 2004 04:40 PM
|
|
|
I did something like this a couple of years ago, but kept it in the same window. For my example, I set up a function called 'nav' as I had several menus of this type and wanted a fuction to deal with all of them... You will need to do the same. I munged my code so it opens in a new window..
function nav ( locn) {window.open( locn )}
You can call it what you like. What you do is send the url to nav using the onchange and the fuction opens it in a new window.
Here is my code for the menu to show how it works
<form name="webmaster" class="normalform"> <select name="freebies" class="textform" onChange="nav (document.webmaster.freebies.options[selectedIndex].value)"> <option value="*"> ~~ The Basics ~~ <option value="email.shtml"> Email <option value="graphics.shtml"> Graphics <option value="midi.shtml"> Midis <option value="redirect.shtml"> Redirect URL's <option value="tutorial.shtml"> Tutorials <option value="webspace.shtml"> Web Space </select>
It is easy to implement in your code.
NB this sort of code isnt search engine friendly, so if you want to have search engines index it, use noscript tags and put html links in for all the pages used in above method. New browsers ignore anything between noscript tags so it doesnt look unsightly.
HTH
|
|
|
|
|