window.location.href

D

debugger

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
 
E

Evertjan.

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"
 
M

Mick White

debugger said:
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
 
D

debugger

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top