We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message
Contact Forum Editor

Send an email to our Forum Editor:


PLEASE NOTE: Your name is used only to let the Forum Editor know who sent the message. Both your name and email address will not be used for any other purpose.

Tech Helproom


It's free to register, to post a question or to start / join a discussion


 

How to Make a Button


SeeAirA

Likes # 0

I want to know how to make a button using javascript for my website. Something like the start button, but I want it to have these features;I want it to be like a push down button. ie: When you click on it it looks like you pressed it;and if the size can be changed I would like it to be height="30" width="60".

Like this post
LastChip

Likes # 0

There are all sorts of ways to make buttons.

You can have two images (initial button and the clicked button) and simply use "onClick" code to swap the images. You can do the same thing with javascript.

Or you can style the whole thing in css.

Here's some examples.

You can also use one of the many automatic on-line generators to create a css button for you complete with the required code, like this one here.

Like this post

Reply to this topic

This thread has been locked.



IDG UK Sites

Windows 9 release date, price, features: Microsoft teases new OS ahead of 30 September unveiling

IDG UK Sites

From the iPhone 6 to the iWatch and a new Apple TV we look at the products Apple is set to launch...

IDG UK Sites

September 2014 creative trends: 5 things you must see

IDG UK Sites

What to expect from Apple in autumn/winter 2014: iPhone 6, iPhone Air, iWatch, iPad 6, new Apple...