JavaScript tag collection and javascript collection
Click here to bring up a prompt box
At the beginning, this was the case.
Click here to change the text content
Black at first, and red after clicking
Click here to change the text color Click here to determine whether the input is a number
At the beginning, this was the case.
Click here
Note:MyFunction is saved in an external file named "myScript. js.
Click here and the document will disappear.
Click here to create a variable and display the result.
Click here
Assume y = 5, calculate x = y + 2, and display the result.
X = y + 2 =
Click this button to call a function with parameters.
Click here
Click a button to call a function with parameters.
Click here Click here
In this example, the called function executes a calculation and then returns the result:
If the time is earlier than, you will receive greetings "Good morning ".
Click here
Click this button to receive time-based greetings.
Click here
Click this button to receive time-based greetings.
Click here
Click the following button to display the day of the week:
Click here
Click the following button to display the message based on today's date:
Click here
My first JavaScript Program
Enter a number between 5 and 10:
Test input value
Click the button above. The warning box is displayed in 5 seconds.
Click the button above. The input box starts timing from 0.