I have built a large from and I have just discoverd my <button></buttom> does not work as a link
I am using, but it is not workingHTML Code:<button onclick="window.location.href='myurl'">Next</button>
Help.
Printable View
I have built a large from and I have just discoverd my <button></buttom> does not work as a link
I am using, but it is not workingHTML Code:<button onclick="window.location.href='myurl'">Next</button>
Help.
Hi there jelly46,
can you supply a link to the site in question or the the full
code so that members may better assess your problem?
coothead
Hello, its not live yet, i haven't uploaded any thing.
What you see is the problem i have.
Sorry, but thanks for replying.
Hi there jelly46,
unfortunately, the snippet of code that you have supplied is insufficient to solve your problem.
That is why I requested the full code in the absence of a link. ;)
coothead
OK that's fair enough, can i explain a bit more I am building a page with 9 buttons on it. Each button goes to a different link.
How can i make <button></button> a link?
Hi there jelly46,
you've already made the button a link. :)
To answer your question as to why it does not work, requires the the full code. ;)
By full code, I mean at least the code that includes a reference to the variable - "myurl".
coothead
try this
Code:<form><input type="button" value="Next" onClick="window.location.href='myurl'"></form>
I don't have a url yet please use anyone you want.
Code:<button onclick="window.location.href='http://www.google.com'">Next</button>
thanks janu, but it didn't work.
I'm using <button></button>, its all styled and ready to go.