bookmark - Html Scripting HTML scripting

Html Scripting - HTML scripting

 
 Discussion by marvin with 2 Replies.
 Last Update: November 7, 2004, 9:22 am
 
bookmark - Html Scripting HTML scripting  
    
free web hosting
 
HTML scripting
The W3C HTML standard includes support for client-side scripting. It defines how locally executable scripts may be used in a web-page. A particular client-side application, such a web browser, may support several script languages. Script code may be executed as the document loads or at a later event.

Script code can be written directly in the HTML document inside:

SCRIPT elements
Intrinsic event attributes
Script macros

Table of contents
1 The SCRIPT element
2 Intrinsic event attributes
3 Script macros




The SCRIPT element
The SCRIPT element may occur zero or more times within the HEAD and BODY tag. Scripts within script elements are processed as the document loads.


Intrinsic event attributes
Events occur for different elements of a web-page:

Documents (BODY and FRAMESET)
Forms
UI elements (Anchor, Control Element, Image)

Script code may be associated with an event and element by writing code in an HTML attribute. The name of the attribute must be that of a supported intrinsic event for the element (for example, "onLoad"). The script is executed whenever the event occurs for that element.
The HTML intrinsic event model consist of the following events:


Document
onLoad
onUnload
Form
onSubmit
onReset
Document and UI elements
Focus
onFocus
onBlur
UI elements
Mouse
Movement
onMouseOver
onMouseOut
onMouseMove
Button
onClick
onDblClick
onMouseDown
onMouseUp
Keyboard
onKeyPress
onKeyDown
onKeyUp
Other (TEXT/TEXTAREA)
Lost focus with modified content
onChange (also OPTION)
Text selection
OnSelect :P

Some browsers support additional event attributes (outside the standard), such as:
onResize :P
onMove
onScroll
onAbort
Script macros
Script code may be included as an HTML attribute value. The code must be preceded by an ampersand. NOTE: Script macros are often left out of implementations.

Sun Nov 7, 2004    New Discussion   


QUOTE (marvin)

HTML scripting
The W3C HTML standard includes support for client-side scripting. It defines how locally executable scripts may be used in a web-page. A particular client-side application, such a web browser, may support several script languages. Script code may be executed as the document loads or at a later event.

Script code can be written directly in the HTML document inside:

SCRIPT elements
Intrinsic event attributes
Script macros

Table of contents 
1 The SCRIPT element
2 Intrinsic event attributes
3 Script macros

The SCRIPT element
The SCRIPT element may occur zero or more times within the HEAD and BODY tag. Scripts within script elements are processed as the document loads.
Intrinsic event attributes
Events occur for different elements of a web-page:

Documents (BODY and FRAMESET)
Forms
UI elements (Anchor, Control Element, Image)

Script code may be associated with an event and element by writing code in an HTML attribute. The name of the attribute must be that of a supported intrinsic event for the element (for example, "onLoad"). The script is executed whenever the event occurs for that element.
The HTML intrinsic event model consist of the following events:
Document
onLoad
onUnload
Form
onSubmit
onReset
Document and UI elements
Focus
onFocus
onBlur
UI elements
Mouse
Movement
onMouseOver
onMouseOut
onMouseMove
Button
onClick
onDblClick
onMouseDown
onMouseUp
Keyboard
onKeyPress
onKeyDown
onKeyUp
Other (TEXT/TEXTAREA)
Lost focus with modified content
onChange (also OPTION)
Text selection
OnSelect  :P

Some browsers support additional event attributes (outside the standard), such as:
onResize :P 
onMove
onScroll
onAbort
Script macros
Script code may be included as an HTML attribute value. The code must be preceded by an ampersand. NOTE: Script macros are often left out of implementations.
[post="6924"]<{POST_SNAPBACK}>[/post]



Please do not copy other material. http://www.fact-index.com/h/ht/html_scripting.html

Sun Nov 7, 2004    New Discussion   

Quickly Post to Html Scripting HTML scripting w/o signup Share Info about Html Scripting HTML scripting using Facebook, Twitter etc. email your friend about Html Scripting HTML scripting Print
Reply / Comment Ask a Question? Share / Bookmark E-Mail a Friend Print

Upgrade   Upgrade (0) (1) About Posts   About Posts