Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 20th Apr 2010, 02:27 PM   #1
Advanced Warrior
War Room Member
 
Ashley Gable's Avatar
 
Join Date: 2009
Location: USA
Posts: 864
Thanks: 167
Thanked 94 Times in 85 Posts
Default
Can someone here take a second and show me how to put a link onto a "submit" button
Share on: 
fb share twitter share gplus share more share

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 &gt;&gt;" type="submit" /></span> </td></tr></tbody></table>
I found one site that said you need to change the input from "submit" to "button". I followed their advice but it still wouldnt work.

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
Ashley Gable is offline  
Unread 20th Apr 2010, 02:39 PM   #2
Warrior Member
 
dsbonn's Avatar
 
Join Date: 2009
Location: Malta
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Re: Can someone here take a second and show me how to put a link onto a "submit" button
Share on: 
fb share twitter share gplus share more share

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
dsbonn is offline  
Unread 20th Apr 2010, 02:48 PM   #3
Advanced Warrior
War Room Member
 
Ashley Gable's Avatar
 
Join Date: 2009
Location: USA
Posts: 864
Thanks: 167
Thanked 94 Times in 85 Posts
Default
Re: Can someone here take a second and show me how to put a link onto a "submit" button
Share on: 
fb share twitter share gplus share more share

Originally Posted by dsbonn View Post

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
Thanks for the reply.

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>
Ashley Gable is offline  
Unread 20th Apr 2010, 02:51 PM   #4
Warrior Member
 
dsbonn's Avatar
 
Join Date: 2009
Location: Malta
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Re: Can someone here take a second and show me how to put a link onto a "submit" button
Share on: 
fb share twitter share gplus share more share

actually,

you can do without the <form> and the </form>

and dont forget to replace the xxxx with the url of the page
dsbonn is offline  
Unread 20th Apr 2010, 02:57 PM   #5
Advanced Warrior
War Room Member
 
Ashley Gable's Avatar
 
Join Date: 2009
Location: USA
Posts: 864
Thanks: 167
Thanked 94 Times in 85 Posts
Default
Re: Can someone here take a second and show me how to put a link onto a "submit" button
Share on: 
fb share twitter share gplus share more share

Originally Posted by dsbonn View Post

actually,

you can do without the <form> and the </form>

and dont forget to replace the xxxx with the url of the page

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?
Ashley Gable is offline  
Unread 20th Apr 2010, 02:58 PM   #6
Warrior Member
 
dsbonn's Avatar
 
Join Date: 2009
Location: Malta
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Re: Can someone here take a second and show me how to put a link onto a "submit" button
Share on: 
fb share twitter share gplus share more share

any luck? or still struggling?
dsbonn is offline  
The Following User Says Thank You to dsbonn For This Useful Post:
Unread 20th Apr 2010, 02:59 PM   #7
Warrior Member
 
dsbonn's Avatar
 
Join Date: 2009
Location: Malta
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Re: Can someone here take a second and show me how to put a link onto a "submit" button
Share on: 
fb share twitter share gplus share more share

yes, change the value part to some like this

value = "click this button"

dont forget the quotes
dsbonn is offline  
The Following User Says Thank You to dsbonn For This Useful Post:
Unread 20th Apr 2010, 03:00 PM   #8
Advanced Warrior
War Room Member
 
Ashley Gable's Avatar
 
Join Date: 2009
Location: USA
Posts: 864
Thanks: 167
Thanked 94 Times in 85 Posts
Default
Re: Can someone here take a second and show me how to put a link onto a "submit" button
Share on: 
fb share twitter share gplus share more share

Originally Posted by dsbonn View Post

yes, change the value part to some like this

value = "click this button"

dont forget the quotes
Oh lol that was it, I left the quotes out!

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
Ashley Gable is offline  
Closed Thread


Bookmarks

Tags
button, link, put, show, submit


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 10:11 PM.