Mon, Jun 27, 2005 (Using location.href to move to another HTML page)

Here's a quick note for those of us that like to create prototypes during a requirements process using HTML. Whenever you want to create a button that is supposed to simulate the action of moving to another screen, you can use code similar to the following code snippet to simulate this behavior:

<input type="button" 
          value=" Next >> " 
          onClick="location.href='WizardPage2.html'">

I took this code sample from a wizard where I had buttons for "Previous" and "Next" actions. In this case, when the user presses the "Next" button, I automatically take them to a page named WizardPage2.html.

This is a very simple behavior to implement, and I've never met an end user who didn't understand what I was trying to prototype.