User Tools

Site Tools


en:objects:script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:objects:script [2020/10/06 20:59]
sales removed
en:objects:script [2026/08/05 22:29] (current)
Line 1: Line 1:
-<html><h2>s</h2>Object for managing elements with the S tag on the current page. <i>Available from 4.9.27</i><br><br><a href="http://htmlbook.ru/html/s">Learn more about the S</a><br><br><hr><br><font size=3><A href="/wiki/doku.php?id=en:objects:common">basic functionality</A><br></font><br></html>+<html><h2>script</h2>Object for managing script on the current page (SCRIPT tag)<br><br><hr><br><h5>Sample HTML code:</h5><SPAN style="COLOR: #339933">&lt;</SPAN>script<SPAN style="COLOR: #339933">&gt;</SPAN><SPAN style="COLOR: #b1b100">if</SPAN><SPAN style="COLOR: #009900">(</SPAN>confirm<SPAN style="COLOR: #009900">(</SPAN><SPAN style="COLOR: #0000FF">"REGISTER"</span><span style="color: #009900">)</SPAN><SPAN style="COLOR: #009900">)</SPAN><SPAN style="COLOR: #009900">{</SPAN>alert<SPAN style="COLOR: #009900">(</SPAN><SPAN style="COLOR: #0000ff">"you chose paid registration"</SPAN><SPAN style="COLOR: #009900">)</SPAN><SPAN style="COLOR: #339933">;</SPAN><SPAN style="COLOR: #009900">}</SPAN><SPAN style="COLOR: #b1b100">else</SPAN><SPAN style="COLOR: #009900">{</SPAN>alert<SPAN style="COLOR: #009900">(</SPAN><SPAN style="COLOR: #0000ff">"cancel"</SPAN><SPAN style="COLOR: #009900">)</SPAN><SPAN style="COLOR: #339933">;</SPAN><SPAN style="COLOR: #009900">}</SPAN><br><br><h5>Description</h5><font color=green>the SCRIPT tag</font> 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.<br><br><a href="http://htmlbook.ru/html/script">Learn more about the SCRIPT tag (source)</a><br><br><hr><br><font size=3><A href="/wiki/doku.php?id=en:objects:common">basic functionality</A><br><A href="#change_specify">Change specific script properties</A><br><A href="#get_specify">To obtain the specific properties of the script</A><br><A href="#get_all">Get information for all scripts</A></font><br><br><a name="change_specify"></a><hr><br><I>Change specific script properties</I><br><br><A href="/wiki/doku.php?id=en:objects:script:change_specify:set_defer_by_number">set_defer_by_number</A> – ask defer the script with the given number<br><A href="/wiki/doku.php?id=en:objects:script:change_specify:set_defer_by_src">set_defer_by_src</A> – ask defer from script src the specified<br><br><A href="/wiki/doku.php?id=en:objects:script:change_specify:set_htmlFor_by_number">set_htmlFor_by_number</A> – ask htmlFor the script with the given number<br><A href="/wiki/doku.php?id=en:objects:script:change_specify:set_htmlFor_by_src">set_htmlFor_by_src</A> – ask htmlFor the script with the specified src<br><br><A href="/wiki/doku.php?id=en:objects:script:change_specify:set_event_by_number">set_event_by_number</A> – set event in the script with the given number<br><A href="/wiki/doku.php?id=en:objects:script:change_specify:set_event_by_src">set_event_by_src</A> – set event from script src the specified<br><br><A href="/wiki/doku.php?id=en:objects:script:change_specify:set_src_by_number">set_src_by_number</A> – set the src of the script with the given number<br><br><A href="/wiki/doku.php?id=en:objects:script:change_specify:set_text_by_number">set_text_by_number</A> – set the text of the script with the given number<br><A href="/wiki/doku.php?id=en:objects:script:change_specify:set_text_by_src">set_text_by_src</A> – set event from script src the specified<br><br><A href="/wiki/doku.php?id=en:objects:script:change_specify:set_type_by_number">set_type_by_number</A> – set the type of the script with the given number<br><A href="/wiki/doku.php?id=en:objects:script:change_specify:set_type_by_src">set_type_by_src</A> – set the script type with the specified src<br><br><a name="get_specify"></a><hr><br><I>Get specific script properties</I><br><br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_defer_by_number">get_defer_by_number</A> – get defer from the script with the specified number<br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_defer_by_src">get_defer_by_src</A> – get defer from the script with the specified src<br><br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_htmlFor_by_number">get_htmlFor_by_number</A> – get htmlFor the script with the given number<br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_htmlFor_by_src">get_htmlFor_by_src</A> – get htmlFor the script with the specified src<br><br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_event_by_number">get_event_by_number</A> – get the event in the script with the given number<br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_event_by_src">get_event_by_src</A> – get the event from script src the specified<br><br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_readyState_by_number">get_readyState_by_number</A> – to the readyState of the script with the given number<br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_readyState_by_src">get_readyState_by_src</A> – get the readyState of the script with the specified src<br><br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_text_by_number">get_text_by_number</A> – get the script text of the specified<br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_text_by_src">get_text_by_src</A> – get the script text with the specified src<br><br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_type_by_number">get_type_by_number</A> – get the script type with the specified number<br><A href="/wiki/doku.php?id=en:objects:script:get_specify:get_type_by_src">get_type_by_src</A> – get the script type with the specified number<br><br><a name="get_all"></a><hr><br><I>Get specific script properties</I><br><br><A href="/wiki/doku.php?id=en:objects:script:get_all:is_all_completed">is_all_completed</A> – check that all scripts are not running<br><br></html>
en/objects/script.1602007150.txt.gz · Last modified: 2020/10/06 20:59 by sales