html script tag
Translation results:
英[skrɪpt] 美[skrɪpt]
n. Script, handwriting; written typeface; script, broadcast script or movie script
vt. Written for a movie (or drama, etc.) Script; make up
Third person singular: scripts Plural: scripts Present participle: scripting Past tense: scripted Past participle: scripted
html script tagsyntax
Function: Used to define client-side scripts, such as JavaScript.
Note: The script element can contain script statements or point to an external script file through the src attribute. The required type attribute specifies the MIME type of the script. Common applications of JavaScript are image manipulation, form validation, and dynamic content updates.
Note: If the code inside this element is not located in a function, then the code will be executed immediately when the page is loaded. Scripts following the <frameset> tag will be ignored.
html script tagexample
<html> <body> <script type="text/javascript"> document.write("<h1>Hello World!</h1>") </script> </body> </html>
Run Instance»
Click the "Run Instance" button to view the online instance
<html> <body> <script type="text/javascript"> alert('hello php.cn'); </script> </body> </html>
Run instance»
Click the "Run instance" button to view the online instance