javascript:history detection

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

    javascript:history detection

    Im using some custom javascript:hist ory.forward() &
    javascript:hist ory.back() image buttons on my application.

    If there is no back or forward history, I would like to display a
    dimmed(disabled look) image.

    Is there a way to detect if there is no history in iether direction?

    Thanks!



  • Randy Webb

    #2
    Re: javascript:hist ory detection

    Jake wrote:
    [color=blue]
    > Im using some custom javascript:hist ory.forward() &
    > javascript:hist ory.back() image buttons on my application.[/color]

    Why are you attempting to duplicate what is already built into the browser?
    [color=blue]
    > If there is no back or forward history, I would like to display a
    > dimmed(disabled look) image.[/color]

    The browser already does that.
    [color=blue]
    > Is there a way to detect if there is no history in iether direction?[/color]

    No.
    [color=blue]
    > Thanks![/color]

    Welcome

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly

    Comment

    • Jake

      #3
      Re: javascript:hist ory detection


      "Randy Webb" <HikksNotAtHome @aol.com> wrote in message
      news:Z_2dnWcgEa mitozfRVn-gA@comcast.com. ..[color=blue]
      > Jake wrote:
      >[color=green]
      >> Im using some custom javascript:hist ory.forward() &
      >> javascript:hist ory.back() image buttons on my application.[/color]
      >
      > Why are you attempting to duplicate what is already built into the
      > browser?[/color]

      Because the application runs in a browser window with only the title and
      status bars (no toolbar)
      [color=blue]
      >[color=green]
      >> If there is no back or forward history, I would like to display a
      >> dimmed(disabled look) image.[/color]
      >
      > The browser already does that.[/color]
      See above.
      [color=blue][color=green]
      >> Is there a way to detect if there is no history in iether direction?[/color]
      >
      > No.[/color]

      If the browser can do it - why cant it be done with javascript?
      [color=blue][color=green]
      >> Thanks![/color]
      >
      > Welcome
      >
      > --
      > Randy
      > comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly[/color]



      Comment

      • Lee

        #4
        Re: javascript:hist ory detection

        Jake said:
        [color=blue][color=green][color=darkred]
        >>> Is there a way to detect if there is no history in iether direction?[/color]
        >>
        >> No.[/color]
        >
        >If the browser can do it - why cant it be done with javascript?[/color]

        The browser has access to lots of information that isn't available
        to Javascript.

        The browser is a trusted application that has to know (and can't
        avoid knowing). On the other hand, code downloaded over the
        internet should not be able to find out what, if anything, has
        been going on in the same window.

        Reconsider allowing access to the toolbar.

        Comment

        Working...