HTML
HTML Basic
HTML Tags
HTML Formatting
HTML Attributes
HTML & Styles
HTML & Scripts
HTML Tables
HTML Lists
HTML Links
HTML Forms
HTML Images
HTML Meta Tags
HTML Layout
HTML Doctypes
HTML CSS
HTML Head
HTML Scripts
HTML Entities
HTML Encoding
HTML5
HTML5 Basic
HTML5 Tags
HTML5 Input Types
HTML5 Video
HTML5 Audio
HTML5 Drag and Drop
HTML5 Canvas
HTML5 SVG
HTML5 Geolocation
CSS
CSS Basic
Applying CSS
CSS Selectors
CSS Colors
CSS Text & Fonts
CSS Borders
CSS Align
CSS Margins & Padding
CSS Grouping & Nesting
CSS Positioning
CSS Floating
CSS Dimension
CSS Display
CSS Pseudo
CSS3
CSS3 Basic
CSS3 Selectors
CSS3 Shadows
CSS3 Gradients
CSS3 Transitions
CSS3 Animations
CSS3 @Font Face
CSS3 Rounded Corners
CSS3 Multi Columns
CSS3 Flexible Box
CSS3 Transform
JavaScript
JS Basic
JS Keywords
JS Statements
JS Variables
JS Operators
JS Functions
JS Objects
JS Guidelines
JS Comparisons
JS If...Else
JS Switch
JS Loop
JS Events
JS Try...Catch
JS Browser Objects
JS Cookies
JS Validation
JS Timer
JS Objects
jQuery
jQuery Core
jQuery Selectors
jQuery Attributes
jQuery Traversing
jQuery Manipulation
jQuery Events
jQuery CSS
jQuery Effects
jQuery Ajax
jQuery Plugins
jQuery Animations
jQuery Utilities
References
HTML References
HTML 5 References
CSS References
CSS3 References
JavaScript References
HTML Code References
Ascii Code References
URL Encode & URL Decode
HTML Encode & HTML Decode
HTML to Text
Home
Javascript
Button
button (JavaScript 1.0)
A graphical button that can be "pressed" by a user.
Properties & Events
Key
Description
Availability
value
Text that appears on the button.
1.0
1.0
1.0
3.0
7.0
onclick
Event handler for when the button is clicked.
1.0
1.0
1.0
3.0
7.0
Result from the Online TryIt-Editor
<!doctype html> <html> <head> <title>HtmlNest.com live html example</title> </head> <body> <form name="myform" /> <button name="wgbutton" value="Submit" type="button"> Click Me</button></form> <script type="text/javascript"> document.write('<h3>Button value is: ' + document.myform.wgbutton.value + '</h3>'); </script> </body> </html>
1.0
1.0
1.0
4.0
5.0
Examples having uses of: 'button'
Newest examples
Most popular examples
Most views examples
4 votes
10k views
HTML5 geoLocation
The HTML5 Geolocation API is used to get the geographical position of a user. NOTE: Since this can compromise user privacy, the position is not available unless the user approves it.
4 votes
10k views
jQuery Hide & Show
With jQuery, you can hide and show HTML elements with the hide and show methods
4 votes
8k views
jQuery ajaxStart & ajaxComplete
jQuery ajaxStart and ajaxComplete are two functions are very useful to show the graphics while the data is loading from server. The ajaxStart method works while the server fullfilling the service asked to it. The ajaxComplete method is called when the server fulfilled the request.
2 votes
10k views
jQuery Animate Introduction
jQuery animate method is very powerful API to manipulate html elements and add animation functionality. The use of animate function is very simple.
1 votes
9k views
jQuery Event Introduction
Introduction to jQuery and how to attach a handler to one or more events for all elements that match the selector.
1 votes
12k views
jQuery AJAX Introduction
The jQuery load method is a simple to use AJAX (Asynchronous JavaScript and XML.) function. That enables you to load ajax content with one line of code. AJAX is a technique for creating better and more interactive web applications and we at webgrid.com are using ajax with jQuery alot to make this web page better!
0 votes
1k views
JavaScript DOM Attribute count
Count number of attributes that exists for the button.
0 votes
1k views
JavaScript DOM setAttribute
We are here using Core DOM setAttribute method we set the value of input type text to button.
0 votes
1k views
JavaScript Link Object
The link object is used to include the external file in the web page. This tag must be inside the head tag of the page. Here is the example of the link that give the type of the external sheet.
0 votes
1k views
JQuery Syntax
With jQuery you select (query) HTML elements and perform "actions" on them. The jQuery syntax is tailor made for selecting HTML elements and perform some action on the element(s) or attributes to element(s)
0 votes
2k views
jQuery Toggle
The jQuery toggle method toggles the visibility of HTML elements using the show or hide methods. Shown elements are hidden and hidden elements are shown. The speed parameter can take the following values: "slow", "fast", "normal", or milliseconds.
0 votes
1k views
jQuery Error handling
Register a handler with jQuery to be called when Ajax requests complete with an error. Whenever an Ajax request completes with an error, jQuery triggers the ajaxError event. Any and all handlers that have been registered with the .ajaxError() method are executed at this time.
0 votes
1k views
jQuery Animate
The jQuery animate method has a complete method we can supply with callback function that is fired once the animation is complete. This can be useful for stringing different animations together in sequence like this example.
0 votes
1k views
jQuery Animate Properties
jQuery animate also support different properties and multiple unit types within one animation.
0 votes
1k views
JavaScript Random
JavaScript random method returns a random number between 0 and 1.
0 votes
2k views
HTML button
The HTML button tag inserts a button control in a form or document. Differently from the HTML input element using "button" in the "type" attribute, this button can contain other HTML elements like the second button in this example.
Useful Information
Contact
Privacy Policy
Copyright 2014 htmlnest.com.
All Rights Reserved.