script
Object for managing script on the current page (SCRIPT tag)
Sample HTML code:
<script>if(confirm("REGISTER")){alert("you chose paid registration");}else{alert("cancel");}
Description
the SCRIPT tag is used to describe scripts, it may contain a link to the program or its text in a specific language. Scripts can be located in an external file and linked to any HTML document. This approach allows you to use the same General functions on many web pages and speeds up their loading, because the external file is cached on the first load, and the script is called faster on subsequent calls.script can be located in the header or body of an HTML document in unlimited numbers. In most cases, the location of the script does not affect the operation of the program. However, the scripts that should be executed first are, usually placed in the title of the document.
Learn more about the SCRIPT tag (source)
basic functionality
Change specific script properties
To obtain the specific properties of the script
Get information for all scripts
Change specific script properties
set_defer_by_number – ask defer the script with the given number
set_defer_by_src – ask defer from script src the specified
set_htmlFor_by_number – ask htmlFor the script with the given number
set_htmlFor_by_src – ask htmlFor the script with the specified src
set_event_by_number – set event in the script with the given number
set_event_by_src – set event from script src the specified
set_src_by_number – set the src of the script with the given number
set_text_by_number – set the text of the script with the given number
set_text_by_src – set event from script src the specified
set_type_by_number – set the type of the script with the given number
set_type_by_src – set the script type with the specified src
Get specific script properties
get_defer_by_number – get defer from the script with the specified number
get_defer_by_src – get defer from the script with the specified src
get_htmlFor_by_number – get htmlFor the script with the given number
get_htmlFor_by_src – get htmlFor the script with the specified src
get_event_by_number – get the event in the script with the given number
get_event_by_src – get the event from script src the specified
get_readyState_by_number – to the readyState of the script with the given number
get_readyState_by_src – get the readyState of the script with the specified src
get_text_by_number – get the script text of the specified
get_text_by_src – get the script text with the specified src
get_type_by_number – get the script type with the specified number
get_type_by_src – get the script type with the specified number
Get specific script properties
is_all_completed – check that all scripts are not running