Thread: Form buttons
View Single Post
Old 01-09-2007, 14:54   #7
punky
Inactive
 
Join Date: Jun 2003
Age: 44
Posts: 14,750
punky has a golden aurapunky has a golden aura
punky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aura
Re: Form buttons

You need to really simplify it, as what you are writing is far too much for what you want to do.

The simplest way of directing people to a new page is a standard text link like so:

<a href="http://www.site.com/page.htm">link text</a>

Change the blue text to where you want the link to go, and the red text to whatever text or pictures you want to appear.

if you want to use a button instead of text or pictures you can just do:

<input type="button" value"button text" onclick="javascript:window.location='http://www.site.com/page.htm'">

Again blue text tells the browser where to go and the red text changes what the button says.

To close the window do:

<input type="button" value="close this window" onclick="javascript:window.close()">

And change the red text to what you want to say.
punky is offline   Reply With Quote