Javascript difference between IE and Safari

I have some code that works in IE but not Safari.

Basically I have a page with frames.  I have links in the left pane.  I want the right pane to scroll to a particular bookmark when a corresponding link is clicked in the left pane.  For now I'm using a button, but will move it to hyperlinks later.  This code works in IE but not Safari.

Tim Jeffryes
TJs Tools LLC
<script language=javascript>
	function navPane() {
	window.parent.frames['main'].navigate(window.parent.frames['main'].location+'#New_Yorker');
	}
 
</script>
 
 
		<input type=button id=info value=sam onclick="navPane()">

Open in new window

LVL 1
tjeffryesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jonah11Commented:
try using window.location rather than window.navigate.

so in line 3, just change the word navigate to location and see if that helps.
0
tjeffryesAuthor Commented:
Jonah11:

thanks. I actually figure that out on my own, but I'll award you the points.

However, it would really be worth my while if you could explain WHY .navigate did not work.  

tim Jeffryes
TJs Tools LLC
0
Jonah11Commented:
Hey Tim,

I believe it is a IE-specific directive.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tjeffryesAuthor Commented:
Thanks very much.  
I hate web programming.  :)
0
Jonah11Commented:
Ya, the differences among browsers and browser versions makes things pretty gross.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.