location.hash problem with IE

Why ?

why IE3.0 reload a document when using location.hash ='top' ?
(IE4.0 NE3.0 and NE4.0 doesn't do that !!!)

more details of my problem :

I have two frames (leftFrame and rightFrame)
on leftFrame there are n images whith
onMouseOver="parent.rightFrame.location = 'file.htm#'+n
(REM this doesn't work : onMouseOver="parent.rightFrame.location.hash=n)

on rightFrame (long document)  we found :
<A NAME='1'></A>
<A NAME='2'></A>
<A NAME='n'></A>

when passing mouse over a picture the rightFrame
go to the specified anchor....
work great with IE but only with localfiles
(because IE3 always call the server for each mouseOver, wich can take a long time !!!)

Do you know a trick for that problem ?
Thanks for your help !

Pierre Bastoul
Who is Participating?
kollegovConnect With a Mentor Commented:
Why? because you use:
onMouseOver="parent.rightFrame.location =
And MIE3.0 isn't so smart as Netscape to
determine that this is a SAME html.

Unfortuantly MIE do not support
location.hash property as well as other ones
so you can't use other way to
to do this.

No way, sorry...

You can check browser once whil loading:

var browserOK;
if(navigator.appName.indexOf("Internet Explorer"))
  if(navigator.appVersion>=4) {browserOK=true;}
  if(navigator.appVersion>=3) {browserOK=true;}

and later youse this
broserOK variable

onMouseOver="if(broserOK) parent.rightFrame.location='file.htm#'+n"

So, your script wouldn't rload document in MIE :(
pbastoulAuthor Commented:
what about a 'document.search'  of JS ?
All Courses

From novice to tech pro — start learning today.