How do I do this?

Shahrier

Paragon
Joined
May 19, 2009
Messages
2,225
Reaction score
0
FP$
6
Code:
<button type="button">Click Me!</button>

Makes a button but How do I put a link so when someone clicks the button, they will be redirected to http://kayark.co.cc ?
 
Shahrier said:
Code:
<button type="button">Click Me!</button>

Makes a button but How do I put a link so when someone clicks the button, they will be redirected to http://kayark.co.cc ?


Try this

Code:
 <form action="">
<a href="http://kayark.co.cc"><input type="button" value="The Kayark Forums"><a/>
</form>
 
What about this?

Code:
<a href="http://kayark.co.cc"><img scr="IMG LINK" /></a>
 
Comkid said:
What about this?

Code:
<a href="http://kayark.co.cc"><img scr="IMG LINK" /></a>
That's for a image. He wanted a button such as a 'submit' button but it says 'click me'. 🙂
 
Jaosals said:
Shahrier said:
Code:
<button type="button">Click Me!</button>

Makes a button but How do I put a link so when someone clicks the button, they will be redirected to http://kayark.co.cc ?


Try this

Code:
 <form action="">
<a href="http://kayark.co.cc"><input type="button" value="The Kayark Forums"><a/>
</form>

The correct way to do it.
Code:
<form action="http://www.site.com" method="get" enctype="application/x-www-form-urlencoded"><input name="Name" type="button" value="Name on button" /> </form>
 
Yes I was reading down the forum and was getting ready to post the same thing. I am surprised it worked with the empty quotes.
 
You can use as it :

Code:
<form>
<input type="button" value="The Kayark Forums"
onclick="window.open('http://kayark.co.cc');return false;">
</form>

It's simply and valid XHTML

and of course with this you can make a new bbcode :

BBCode :
Code:
[LinkBT]{TEXT},{URL}[/LinkBT]

HTML :
Code:
<form>
<input type="button" value="{TEXT}"
onclick="window.open('{URL}');return false;">
</form>

Help Line :
Code:
[LinkBT]Name of your site, URL of your site[/LinkBT]
 
Back
Top Bottom