+ 6
Code plz..
can anyone send me a code for a button which when clicked takes me to the given url .
5 Answers
+ 12
I hope this is what you want:
<form action="http://google.com">
<input type="submit" value="Go to Google" />
</form
+ 6
OR
<a href="http://google.com" class="button">Go to Google</a><style>a.button { -webkit-appearance: button; -moz-appearance: button; appearance: button; text-decoration: none; color: initial; }</style>
+ 6
@Cheesy solution use JS window.location.replace() method...
The location object is also available on 'document' object, and provide too a read/write attribute 'href' wich you can assign with the URL to go ;)
+ 3
Thnx to all .....that helped me @Awele