L
Logos
There seems to be a serious difference between how FF an IE handle an
anchor with an href containing a # and an onclick event.
If the onclick event returns false, IE does not change
window.location.href to include the #. FF does.
(eg) <a href="#moo" onclick="alert('moo'); return false;">
After clicking in IE, location bar in browser shows
"www.moo.cow/index.htm".
After clicking in FF, location bar in browser shows
"www.moo.cow/index.htm#moo".
Can anyone tell me why this should be so? It screws up some otherwise
nifty things for me...
Tyler
anchor with an href containing a # and an onclick event.
If the onclick event returns false, IE does not change
window.location.href to include the #. FF does.
(eg) <a href="#moo" onclick="alert('moo'); return false;">
After clicking in IE, location bar in browser shows
"www.moo.cow/index.htm".
After clicking in FF, location bar in browser shows
"www.moo.cow/index.htm#moo".
Can anyone tell me why this should be so? It screws up some otherwise
nifty things for me...
Tyler