| | #1 |
| Advanced Warrior War Room Member Join Date: 2009 Location: USA
Posts: 864
Thanks: 167
Thanked 94 Times in 85 Posts
|
I am trying to use a submit button, on my sales page, however I just need it to act like a link. I have found a few "tutorials" on how to do it, but I cannot seem to get them to work. Here is the submit button code: Code: <table align="center" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td id="submitpad" onmousedown="this.style.backgroundColor='#ce0000'" onmouseover="this.style.backgroundColor='#009900'" onmouseout="this.style.backgroundColor='#ce0000'" nowrap="nowrap"> <span style="cursor: pointer"> <input name="submit" style="height: 40px; cursor: pointer; font-weight: bold; font-family: Tahoma,Verdana; font-size: 15pt" value="Click Here >>" type="submit" /></span> </td></tr></tbody></table> Lets say for example that I want it to go to google.com when clicked. How do I put that in there. I really appreciate it, I think I was going to go crazy if I kept looking for the answer! So I came to the trusty warriorforum! Ashley |
| |
| | #2 |
| Warrior Member Join Date: 2009 Location: Malta
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
|
try this...use onClick <form action="" method="get"> <input type=button onClick="location.href='xxxx'" value=submit> </form> where xxxx is the url of the page you want to go to |
| |
| | #3 | |
| Advanced Warrior War Room Member Join Date: 2009 Location: USA
Posts: 864
Thanks: 167
Thanked 94 Times in 85 Posts
|
So if I am right, my code would now look like this: (changes made in red) Code: <form action="" method="get"> <table align="center" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td id="submitpad" onmousedown="this.style.backgroundColor='#ce0000'" onmouseover="this.style.backgroundColor='#009900'" onmouseout="this.style.backgroundColor='#ce0000'" nowrap="nowrap"> <span style="cursor: pointer"> <input name="submit" style="height: 40px; cursor: pointer; font-weight: bold; font-family: Tahoma,Verdana; font-size: 15pt" type="button" onClick="location.href='http://www.google.com'" value=Click Here /> </span> </td></tr></tbody></table> </form> | |
| |
| | #4 |
| Warrior Member Join Date: 2009 Location: Malta
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
|
actually, you can do without the <form> and the </form> and dont forget to replace the xxxx with the url of the page |
| |
| | #5 | |
| Advanced Warrior War Room Member Join Date: 2009 Location: USA
Posts: 864
Thanks: 167
Thanked 94 Times in 85 Posts
|
Okay took out the form parts. I just went and checked it on a webpage, it is working. It takes me straight to google, except I cant get it to say anything other than "Click". Do i have the "Value" part right? | |
| |
| | #6 |
| Warrior Member Join Date: 2009 Location: Malta
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
|
any luck? or still struggling?
|
| |
| The Following User Says Thank You to dsbonn For This Useful Post: |
| | #7 |
| Warrior Member Join Date: 2009 Location: Malta
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
|
yes, change the value part to some like this value = "click this button" dont forget the quotes |
| |
| The Following User Says Thank You to dsbonn For This Useful Post: |
| | #8 | |
| Advanced Warrior War Room Member Join Date: 2009 Location: USA
Posts: 864
Thanks: 167
Thanked 94 Times in 85 Posts
|
Thank you so much! I really really appreciate it, you just saved me a boat load of time! Thanks for taking the time to help me out. Ashley | |
| |
|
| Bookmarks |
| Tags |
| button, link, put, show, submit |
| |