Log in

View Full Version : Linking using Command Buttons



musicgal3
11-24-2007, 01:27 AM
I was wondering if anyone here knows how to use command buttons to link to another page? I've tried various things (most of which I can no longer remember, lol), but they won't work. Can anyone help me? Please reply as soon as possible...

Thankyou. :)

jscheuer1
11-24-2007, 06:18 AM
Command buttons is pretty vague. A button though is a specific type of an HTML input element (and so is a submit button). So, for a button to load (link to) another page you have two basic choices -

scripting (requires javascript enabled):


<input type="button"
onclick="window.location='http://www.google.com/'" value="Google">

or a basic HTML form action (requires no javascript):


<form action="http://www.google.com/">
<div>
<input type="submit" value="Google">
</div>
</form>

Either of these two approaches can have many variations and/or styling.

musicgal3
11-24-2007, 10:33 AM
Thankyou sooo much! This really helped & it works! Thanks again. :)