Hello,
how do you add a custom button to a webpage and link it to another page? ANother question is how can you make the button rollover when someone's mouse is over the button and when they click the button? Would I need javascript?
Thanks
Dark_Omen
5
Posting Pro
Recommended Answers
Jump to PostTo create a button, use the "input" tag, with the type attribute set to "button":
<input type="button" id="myButton" />
To make it perform an action, including navigating to another site, code the "onclick" attribute. The value will be a JavaScript function you've written and included elsewhere in the document …
Jump to PostNo, no no. Read the first part of my first reply. Buttons are made with "input" tags, and can be made to perform navigation tasks with the "onclick" attributes. Re-read the first part of my first reply.
All 7 Replies
tgreer
189
Made Her Cry
Team Colleague
Dark_Omen
5
Posting Pro
extofer
-2
Posting Whiz in Training
tgreer
189
Made Her Cry
Team Colleague
Dark_Omen
5
Posting Pro
tgreer
189
Made Her Cry
Team Colleague
mariko
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.