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

window.location.href

P: n/a
I am using window.location.href("#top") for few anchors. The code works
fine on most of the browsers. It does not however work on Safari. Any
suggestions?
Thanks

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


P: n/a
debugger wrote on 14 mrt 2005 in comp.lang.javascript:
I am using window.location.href("#top") for few anchors. The code works
fine on most of the browsers. It does not however work on Safari. Any
suggestions?


Really?

window.location.href = "#top"
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #2

P: n/a
debugger wrote:
I am using window.location.href("#top") for few anchors. The code works
fine on most of the browsers. It does not however work on Safari. Any
suggestions?
Thanks

"top" is a reserved word I would avoid using it.
Mick
Jul 23 '05 #3

P: n/a
thanks. You are right. window.location.href is not a function. so,
window.location.href="#something" will work. thanks again.

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.