Table of Contents
JavaScript can be implemented using JavaScript commands that are placed in HTML tags in a web page.
You can place the card
The script tag takes the following two important properties:
Language - This property specifies which scripting language you are using. Its value will be javascript. Although recent versions of HTML (and XHTML) have stopped using this attribute again.
Type - This attribute is what is now recommended to use and its value should be set to "text / javascript".
Here's a snippet of JavaScript:
Maybe you are interested
- JavaScript location in HTML File
- Variable in JavaScript
- Operator in JavaScript
- If ... else command in JavaScript
- Switch Case command in JavaScript
- The while loop in JavaScript
- For ... loop in JavaScript
- Loop control in JavaScript
- JavaScript functions
- Event (Event) in JavaScript
- Page navigation (Redirect) in JavaScript
- Dialogs - Alert, Prompt, Confirmation in JavaScript