View Full Version : hyperlinking a button
techsol
04-15-2006, 06:45 PM
Once I create a button using this code:
<input type="button" value="Click Here To Log In">
How do I hyperlink this button to a page on my site that is in the same frame as this one? Thanks
Easiest way:
<form action="login.html" method="get">
<input type="submit" value="Click here to log in">
</form>
techsol
04-15-2006, 09:23 PM
The code you left doesn't work when it is in a frame.
jscheuer1
04-15-2006, 10:19 PM
The code you left doesn't work when it is in a frame.
This probably would work then, using target:
<form action="login.html" method="get" target="frameName">
<input type="submit" value="Click here to log in">
</form>
Yes, but I was given to understand you wanted the target to be the current frame.
djr33
04-15-2006, 10:32 PM
Yeah... the default is the current frame. If you want another frame, use the added line in red above. If not, you're set without that.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.