The W3C The World Wide Web Consortium is the main international standards organization for the World Wide Web (abbreviated WWW or W3) HTML HTML, which stands for HyperText Markup Language, is the predominant markup language for web pages. It is written in the form of HTML elements consisting of "tags" surrounded by angle brackets within the web page content standard includes support for client-side scripting Client-side scripting generally refers to the class of computer programs on the web that are executed client-side, by the user's web browser, instead of server-side . This type of computer programming is an important part of the Dynamic HTML (DHTML) concept, enabling web pages to be scripted; that is, to have different and changing content. It defines how locally executable scripts A scripting language, script language or extension language is a programming language that allows control of one or more software applications. "Scripts" are distinct from the core code of the application, which is usually written in a different language, and are often created or at least modified by the end-user. Scripts are often may be used in a web page A web page or webpage is a document or resource of information that is suitable for the World Wide Web and can be accessed through a web browser and displayed on a monitor or mobile device. A particular client-side application, such as a web browser A web browser is a software application for retrieving, presenting, and traversing information resources on the World Wide Web. An information resource is identified by a Uniform Resource Identifier and may be a web page, image, video, or other piece of content. Hyperlinks present in resources enable users to easily navigate their browsers to, may support several script languages. Script code may be executed as the document loads or at a later time.
Script code can be written directly in the HTML document inside:
- SCRIPT elements
- Intrinsic event attributes
Script macros
The SCRIPT element type
SCRIPT elements may occur zero or more times within the HEAD and BODY elements. Scripts within script elements are processed as the document loads.
Intrinsic event attributes
Events In computer programming, event-driven programming or event-based programming is a programming paradigm in which the flow of the program is determined by events—i.e., sensor outputs or user actions or messages from other programs or threads occur for different elements of a web-page:
- Documents (BODY and FRAMESET)
- Forms
- UI In the industrial design field of human-machine interaction, the user interface is where interaction between humans and machines occurs. The goal of interaction between a human and a machine at the user interface is effective operation and control of the machine, and feedback from the machine which aids the operator in making operational decisions 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. These scripts are mostly Javascript. The HTML intrinsic event model consist of the following events:
- Document
- onLoad
- onUnload
- Form
- onSubmit
- onReset
- Document and UI elements
- Focus
- onFocus
- onBlur
- Focus
- UI elements
- Mouse
- Movement
- onMouseOver
- onMouseOut
- onMouseMove
- Button
- onClick
- onDblClick
- onMouseDown
- onMouseUp
- Movement
- Keyboard
- onKeyPress
- onKeyDown
- onKeyUp
- Other (TEXT/TEXTAREA)
- Lost focus with modified content
- onChange (also OPTION)
- Text selection
- OnSelect
- Lost focus with modified content
- Mouse
Some browsers support additional event attributes (outside the standard), such as:
- onResize
- onMove
- onScroll
- onAbort
Script macros
Netscape Navigator Netscape Navigator and Netscape are the names for the proprietary web browser popular in the 1990s, the flagship product of the Netscape Communications Corporation and the dominant web browser in terms of usage share, although by 2002 its usage had almost disappeared. This was partly due to the increased usage of Microsoft's Internet Explorer web supported a feature called "JavaScript entities" or "script macros" by which script code could be included in HTML attribute values, using a syntax similar to that of character entity references. For example, the code <img width="&{prompt('Width?')};" src="foo.jpg"> calls the JavaScript prompt() function to ask the user how wide the image should be.
The HTML 4.01 specification reserves a syntax for the "future support of script macros" in HTML attributes, but they have not been incorporated into later standards and are not supported by any current browser.
Categories: HTML
Personal tools
- New features
- Log in / create account
Namespaces
- Article
- Discussion
Variants
Views
- Read
- Edit
- View history
Actions
Navigation
- Main page The Lives of the Most Eminent Literary and Scientific Men were five volumes of Dionysius Lardner’s 133-volume Cabinet Cyclopaedia . Aimed at the self-educating middle class, this encyclopedia was written during the 19th-century literary revolution in Britain that encouraged more people to read. The Lives formed part of the Cabinet of Biography
- Contents A portal is an introductory page for a given topic. It complements the main article of the subject by introducing the reader to key articles, images, and categories that further describe the subject. They also include to-do lists that are used mostly by Wikipedia's editors
- Featured content Featured content represents the best that Wikipedia has to offer. These are the articles, pictures, and other contributions that showcase the polished result of the collaborative efforts that drive Wikipedia. All featured content undergoes a thorough review process to ensure that it meets the highest standards and can serve as an example of our
- Current events Worldwide current events | Topic-specific: Science and technology | Sports
- Random article
Interaction
- About Wikipedia
- Community portal
- Recent changes
- Contact Wikipedia
- Donate to Wikipedia
- Help
Toolbox
- What links here
- Related changes
- Upload file
- Special pages
- Permanent link
- Cite this page
Print/export
- Create a book
- Download as PDF
- Printable version
Languages
- Interlingua
- Nederlands