+ 6

Code plz..

can anyone send me a code for a button which when clicked takes me to the given url .

15th Jun 2017, 3:52 AM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar
5 Respuestas
+ 12
I hope this is what you want: <form action="http://google.com"> <input type="submit" value="Go to Google" /> </form
15th Jun 2017, 4:24 AM
Awele Omeligwe
Awele Omeligwe - avatar
+ 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>
15th Jun 2017, 4:34 AM
Ekansh
+ 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 ;)
15th Jun 2017, 12:09 PM
visph
visph - avatar
+ 3
Thnx to all .....that helped me @Awele
16th Jun 2017, 4:53 PM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar