For instance, the example below shows you the current time and date by clicking on the button:
The HTML <script> Tag
<Script> elements either contain script statements or point to external script files through src attributes.
In HTML, the <noscript> tag portrays alternate content for users that do not keep scripts in their web browser or have disabled scripts in their web browsers:
HTML can display the following events:
- Form events: resetting, submitting, etc.
- Select events: text area, text field, etc.
- Focus event: blur, focus, etc.
- Mouse events: navigate, select, mouse up, mouse down, click, double click, etc.
|Event Event Name||Handler Name||Occurs when|
|onFocus||focus||Every time an input field is focused.|
|onClick||click||Clicking on a form element or link|
|onBlur||blur||Input on the form becomes unfocused in|
|onLoad||load||During the loading of a page by a browser.|
|onSubmit||submit||A form is submitted by a user.|
|onSelect||select||Form input field is selected by the user.|
HTML Script Tags
|<script>||Creates a script that runs on the browser’s.|
|<noscript>||Feeds alternate content for users who don’t keep client-side scripting|
Here is a complete list of all HTML tags.