Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 


Web Building >> Web design & build

 |  Print Thread
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



Post Extras Print Post   Remind Me!     Notify Moderator
Rate this thread

Jump to


Entire topic
Subject Posted by Posted on
* form link help tomoslewis Wed May 19 2004 08:39 PM
. * * Re: form link help tomoslewis   Thu May 20 2004 04:15 PM
. * * Re: form link help gollum   Thu May 20 2004 04:40 PM
. * * Re: form link help tomoslewis   Thu May 20 2004 04:51 PM
. * * Re: form link help gollum   Thu May 20 2004 05:33 PM
. * * Re: form link help tomoslewis   Thu May 20 2004 07:24 PM
. * * Re: form link help gollum   Thu May 20 2004 08:38 PM
. * * Re: form link help tomoslewis   Thu May 20 2004 08:57 PM
. * * Re: form link help gollum   Thu May 20 2004 09:45 PM

Extra information
0 registered and 0 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Thread
Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Thread views: 291

Contact Us | Privacy statement Main website