By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,960 Members | 1,535 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,960 IT Pros & Developers. It's quick & easy.

help on parent.location problem under IE and netscape

P: n/a
I used php to generate the following html:

....

<meta content="text/javascript" name=Author
http-equiv="Content-Script-Type">

....
<option value="Words and Definitions" onClick="parent.location='#Words
and Definitions'">Words and Definitions</option>

.....

<a name="Words and Definitions">Words and Definitions</a>

....

What I want here is to let the user jump to the particular position
(using <a name=".."></a>, as shown) when choosing an item from drop-down
list (using <option value=...>, as shown).

The above html works well under netscape. It doesn't work under IE. Any
suggestions on how to make it work under both?

Thanks.

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <c8**********@news.cis.ohio-state.edu>, wa*****@cis.ohio-
state.edu enlightened us with...
...

What I want here is to let the user jump to the particular position
(using <a name=".."></a>, as shown) when choosing an item from drop-down
list (using <option value=...>, as shown).

The above html works well under netscape. It doesn't work under IE. Any
suggestions on how to make it work under both?


IE doesn't support onClick of select elements.
You have to use onChange. Should work in both browsers.

<select onChange='parent.location=this.options
[this.selectedIndex].value;'>
<option value='#Words And Definitions'>Words And Definitions</option>

--
--
~kaeli~
Once you've seen one shopping center, you've seen a mall.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.