Basic JavaScript instance
-
Generate text
-
Generate common text and tags
-
Head Section
-
Body section
-
External Javascript
Example
Javascript statements, comments, and code blocks
-
Javascript statements
-
JavaScript code block
-
Javascript single line comment
-
Javascript multi-line comment
-
Use single line comment to prevent execution
-
Use multiline comments to prevent execution
Example
Javascript Variables
-
Declare a variable, assign values to it, and then display it
Example
Javascript Condition Statement if... else
-
If statement
-
If... else statement
-
If. Else if... else statement
-
Random Link
Example
Javascript message box
-
Warning box
-
Warning box with lines
-
Confirmation box
-
Prompt box
Example
JavaScript Functions
-
Function
-
Functions with Parameters
-
Function 2 with Parameters
-
Return Value Function
-
Functions with parameters and returned values
Example
Javascript loop
-
For Loop
-
Generate HTML titles cyclically
-
While Loop
-
Do WHILE LOOP
-
Break statement
-
Continue statement
-
Use the for... in Declaration to traverse the elements in the array
Example
Javascript error handling
-
Try... catch statement
-
Try... catch statement with confirmation box
-
Throw statement
-
Onerror event
Example
Advanced JavaScript instance
-
Detect browsers and versions
-
Detect more information about the browser
-
Detects all browser Information
-
Remind users based on browser type
-
Create a welcome cookie
-
Button Animation
-
Added JavaScript image ing.
-
Simple timing
-
Another simple timing
-
Timing events in an infinite loop
-
Timing events in an infinite loop with a stop button
-
Clocks and clocks created using timing events
-
Instance of the created object
-
Create an object Template