Creating A Input Link Button
hello all a quick question.. i am building a static html page, and would like to like one page to another using a button, now using a link is the easier option but i would like the
Solution 1:
Just submit the form to the URL.
<form action="testimonials.html">
<input type="submit" value="Read more">
</form>
… but buttons are supposed to do stuff. Links go places. Don't send people mixed messages, use a link.
Solution 2:
you've misspelled "onclick" :)
EDIT: if you want to avoid javascript, you can create a button-like link with CSS:
<a href="testimonials.html" style="display: inline-block; border: 1px solid #AAA; background-color: #CCC; margin: 5px; width: 100px; cursor: pointer; text-align: center; color: #000; text-decoration: none;">Read More</a>
Solution 3:
Try this code:
<form>
<input type="button" value="Read more" class="button" onlick="window.location='testimonials.html'">
</form>
Post a Comment for "Creating A Input Link Button"