window.location.href

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • debugger

    #1

    window.location.href

    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

  • Evertjan.

    #2
    Re: window.location .href

    debugger wrote on 14 mrt 2005 in comp.lang.javas cript:
    [color=blue]
    > 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?[/color]

    Really?

    window.location .href = "#top"


    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)

    Comment

    • Mick White

      #3
      Re: window.location .href

      debugger wrote:[color=blue]
      > 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
      >[/color]
      "top" is a reserved word I would avoid using it.
      Mick

      Comment

      • debugger

        #4
        Re: window.location .href

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

        Comment

        Working...