question about html button...

1 replies
Hey all,

I'm wondering how to turn this button into a hyperlink?

<input onClick="document.location='#I'" type="button" value="Click Here to Order Now!" style="width: 475; height: 38; font-family: Arial; font-size: 16pt; font-weight: bold; letter-spacing: -1">

Any help would be great thanks!

Andrew
#button #html #question
  • Profile picture of the author Matt Ryan
    Hey Andrew -

    If there is no specific reason you need the 'onClick'
    and simply want to send them to an order URL you
    could use something like this:
    Code:
    <form action="http://your_order_url_here.com">
    <input type="submit" value="Click Here to Order Now!" style="width: 475; height: 38; font-family: Arial; font-size: 16pt; font-weight: bold; letter-spacing: -1">
    </form>
    If you want to open a new window on click as well:
    Code:
    <form action="http://your_order_url_here.com" target="_new">
    <input type="submit" value="Click Here to Order Now!" style="width: 475; height: 38; font-family: Arial; font-size: 16pt; font-weight: bold; letter-spacing: -1">
    </form>
    Matt
    {{ DiscussionBoard.errors[37689].message }}

Trending Topics