Call: (209) 560-6611

Use form button as link

Date: February 15, 2013 Author: ang Category: Tutorials Websites WordPress Tags: , , Comments: 0

Sometimes it's better to create a button on your website instead of a link. Creating a button using Photoshop, or JavaScript can be a slight hassle. In this tutorial, I will show you how to create a button link, using the form button html element Using a form button in place of a link is very easy and quick to do. Your website's CSS styles will probably make the button link match the rest of the site, which is what we want.

Create form button link

  1. Copy the code snippet below and paste it into your website's HTML. If you have a WordPress website, you can paste this cose snippet into any post, page or widget.

     HTML |  copy code |? 
    1
    <input type="button" value="Continue" 
    2
    onClick="window.location.href='http://google.com';" />
  2. Change the Google website address to be the link for your button.
  3. Customize the text for the button by changing the text 'Continue'.

Leave a Reply

Your email address will not be published. Required fields are marked *

Before you post, please prove you are sentient.

What is 3 multiplied by 7?

Before you post, please prove you are sentient.

What is 3 multiplied by 4?