Initiation à la création de site Web
Exemples
Voir les exemples sur le site de
w3schools.com
.
JavaScript Examples
Detect the visitor's browser and browser version
Alert user, depending on browser
Button animation
Image map with added JavaScript
Simple timing
JavaScript Object Examples
Use Date() to return today's date and time
A clock created with a timing event
Convert Celsius to Fahrenheit
JavaScript HTML DOM Examples
Change text, URL, and target attribute of a link
Return the URL of a document
Return the referrer of a document
Which mouse button was clicked?
What are the coordinates of the cursor?
Which element was clicked?
Form validation
Set focus to an input field when the page loads
Another dropdown list
Jump to the next field when the current field's maxlength has been reached
Change the height and width of an image
Change the src of an image
Send the client to a new location / URL
Reload a page
Detect the visitor's browser and browser version
Alert user, depending on browser
Detect details about the client's screen
Add rows to a table
Change the colspan of a table row