Jump to: navigation, search

Applies to  ?


View live exampleThis example uses the EVENT attribute and the event property to handle the onclick event.

<SCRIPT ID=oButtonScript FOR="oButton" EVENT="onclick()">
    var sMessage1 = "Flip"
    var sMessage2 = "Flop"
    if (oButton.innerText == sMessage1) {
        oButton.innerText = sMessage2;
    else {
    if (oButton.innerText == sMessage2) {
        oButton.innerText = sMessage1;
<BUTTON ID="oButton" onmouseout="console.log(oButtonScript.event)">Flip</BUTTON>


Standards information

See also

Related articles


… further results"html" is not in the list of possible values (Canvas, CSS Font, CSS Layout, Animation, Audio, Background, Border, Box Model, CSS Attributes, CSSOM, Combinators, Deprecated, Document Structure, Exclusions, FileSystemAPI, Filters, Flexbox, Fonts, Generated and Replaced Content, Gradients, Grid Layout, HTML, Multimedia, Media Queries, Mobile, Multi-Column, Off-line Storage, Paged Media, Performance, Pointer Events, Pseudo-Classes, Pseudo-Elements, Regions, Responsive Web Design, Ruby, Scrollbar, Selectors, Security, Shapes, Syntax, Tables, Text, Touch, Transforms, Transitions, Video, Visual Effects, Web Components, WebRTC, XHR) for this property.

Related pages (MSDN)

  • script
  • event


This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]