how to jump to next page ?

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

    how to jump to next page ?

    Hi,

    I have a button on an html-page.
    how do I jump to a next html-page when clicking on the button ?

    sample code :
    function btnNext_onclick () {

    here do I want to jump to page2.html but how do I implement it ????

    }

    thanks for any help.

    chris


  • David Dorward

    #2
    Re: how to jump to next page ?

    Christian wrote:
    [color=blue]
    > I have a button on an html-page.
    > how do I jump to a next html-page when clicking on the button ?[/color]
    [color=blue]
    > sample code :
    > function btnNext_onclick () {
    > here do I want to jump to page2.html but how do I implement it
    > ????
    > }[/color]

    Rule 1: Pick the right tool for the job.

    <a href="the-next-page.html" onclick="anyJsY ouWantToRunFirs t()">some
    text</a>

    Possibly with: http://tom.me.uk/2002/8/css-buttons.html

    --
    David Dorward http://david.us-lot.org/

    Comment

    • David Dorward

      #3
      Re: how to jump to next page ?

      splish wrote:
      [color=blue]
      > It's late and i'm very pissed (vb's are the flavour in melbourne, AUST)
      > ...but why would you have a href AND an onclick link together ?[/color]

      The example that springs to mind, becuase I use it a lot, is to highlight
      the element being linked to with <a href="#element" > so that even if it is
      near the bottom of the browser window (and therefore can't scroll to the
      top of the window) its easy for users to see.

      http://david.us-lot.org/software/frag/ if you're interested in the script.

      --
      David Dorward http://david.us-lot.org/

      Comment

      Working...