How to Make a Button

  SeeAirA 21:31 16 Aug 13
Locked

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".

  LastChip 23:25 16 Aug 13

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.

Advertisement

This thread is now locked and can not be replied to.

Nvidia Titan X release date, price and specs UK: Nvidia's new Titan X GP102 for 2016 launching on 2t…

1995-2015: How technology has changed the world in 20 years

This Superman ride is a real rollercoaster that you wear a VR headset on

Apple 12-inch MacBook review (2016): A question of port