HighDots Forums  

Global references to elements (was Re: onclick problem with netscape)

alt.html.tags alt.html.tags


Discuss Global references to elements (was Re: onclick problem with netscape) in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Dorward
 
Posts: n/a

Default Global references to elements (was Re: onclick problem with netscape) - 08-22-2004 , 10:02 AM






chris wrote:

Quote:
so i modified it to the below - it works in IE but not in netscape, any

input type="button" name="but" value="load"
onclick="javascript:location.href = select.options.value;"
Most browsers do not create global variables referencing named elements on
the page.

Your entire approach to this problem is fairly poor though, have a read of:
http://www.cs.tut.fi/~jkorpela/forms/navmenu.html (as you don't want the
onchange bits, you can just delete that attribute entirely from the example
code).


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.