JavaScript Programmer’s Reference See also: Event, Event handler,

May 7th, 2008

JavaScript Programmer’s Reference See also: Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onBounce, onFinish, onStop, Semantic event onStop (Event handler) Called when the user stops a page loading. Availability: JavaScript 1.2 Netscape 4.0 JavaScript syntax: N myObject.onstop = aHandler This event is called when the user halts the page loading with the stop button on the toolbar. Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onBounce, onFinish, onStart, Semantic event See also: onSubmit (Event handler) The user has clicked on the submit button in a form. Availability: JavaScript 1.1 JScript 3.0 Internet Explorer 3.0 Netscape 2.0 Opera browser 3.0 Property/method value type: Boolean primitive JavaScript syntax: -myObject.onsubmit = aHandler HTML syntax:

Argument list: aHandler A reference to a function object to handle the event Supported by objects: FORM As the submit button is clicked, this event is triggered. If you return the value true, the event will be passed to the browser for further processing and the form will be submitted. Returning false inhibits this action and discards the message, the form will not be submitted. This provides a means of inhibiting submits when the form data is bad. You can later on call the submit() method to send the form content back to the server. Note that the submit()method will not trigger an onSubmit event. Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onClick, onMouseDown, onMouseUp, onReset, Semantic event See also: 1654

O onSelectStart (Free web hosting with ftp) (Event handler) See also: Event,

May 6th, 2008

O onSelectStart (Event handler) See also: Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onClick, onMouseDown, onMouseUp, onSelectStart, Semantic event onSelectStart (Event handler) A select action is beginning. JScript 3.0 Boolean primitive myObject.onselectstart = aHandler IE A, DIV, LI, SUB, ACRONYM, DL, LISTING, SUP, ADDRESS, Document, MARQUEE, TABLE, Anchor, DT, MENU, TBODY, B, EM, OBJECT, TD, BIG, FIELDSET, OL, TEXTAREA, BLOCKQUOTE, FONT, P, TFOOT, BODY, FORM, PLAINTEXT, TH, BUTTON, H1, PRE, THEAD, CAPTION, HR, Q, TR, CENTER, I, S, TT, CITE, IMG, SAMP, U, CODE, Input, Select, UL, DD, INS, SMALL, Url, DEL, KBD, SPAN, VAR, DFN, LABEL, STRIKE, , DIR, LEGEND, STRONG, Availability: Internet Explorer 4.0 Property/method value type: JavaScript syntax: HTML syntax: Argument list: aHandler A reference to a function object to handle the event. Supported by objects: At the commencement of a selection, this event is triggered. This allows you to do some animation or perhaps draw a bounding rectangle while the selection takes place. See also: Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onSelect, Semantic event onStart (Event handler) Fires when a MARQUEE element is beginning its loop. Availability: Internet Explorer 4.0 JScript 3.0 Property/method value type: Boolean primitive JavaScript syntax: IE myObject.onstart = aHandler HTML syntax: Argument list: aHandler A reference to a function object to handle the event Supported by objects: MARQUEE A MARQUEEelement provides a suite of events that allow you to attach all manner of event driven animations and wizzy effects to them. This event is triggered when the MARQUEE starts its loop. 1653

JavaScript Programmer’s Reference See (Graphic web design) also: XML.event onScroll (Event

May 6th, 2008

JavaScript Programmer’s Reference See also: XML.event onScroll (Event handler) The window has been scrolled. Availability: JScript 3.0 Internet Explorer 4.0 Property/method value type: Boolean primitive JavaScript syntax: IE myObject.onscroll = aHandler HTML syntax: Argument list: aHandler A reference to a function object to handle the event Supported by objects: BODY, FIELDSET, MARQUEE, Window, CAPTION, IMG, TABLE, DIV, LEGEND, TEXTAREA, Scrolling windows is usually harmless. However, you might have some window content that want to remain visible after the window has scrolled. Perhaps you have some navigation objects placed in a layer that you want to leave positioned where it was regardless of the window scroll position. Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, Semantic event, Window events See also: onSelect (Event handler) Some textual content in the window has been selected. Availability: JavaScript 1.0 JScript 3.0 Internet Explorer 4.0 Netscape 2.0 Opera browser 3.0 Property/method value type: Boolean primitive JavaScript syntax: -myObject.onselect = aHandler HTML syntax: Argument list: aHandler A reference to a function object to handle the event Supported by objects: CAPTION, FileUpload, RadioButton, TEXTAREA, Checkbox, Input, ResetButton, TextCell, FIELDSET, Password, SubmitButton, Selecting text in the window may be a precursor to a cut or paste operation. If the elements are able to support TextRanges, then you may want to receive a trigger when a text selection occurs. 1652

Space web hosting - O onRowExit (Event handler) onRowExit (Event handler)

May 5th, 2008

O onRowExit (Event handler) onRowExit (Event handler) The data in a field bound to a data source has been changed. JScript 3.0 Availability: Internet Explorer 4.0 Property/method value type: JavaScript syntax: HTML syntax: Argument list: Boolean primitive myObject.onrowexit = aHandler IE aHandler A reference to a function object to handle the event Supported by objects: APPLET, DIV, MARQUEE, TD, AREA, Document, OBJECT, TEXTAREA, BODY, IMG, Select, TH, BUTTON, Input, TABLE, This event fires just before the data source control changes the current row in the object. On exiting from a row, you may want to check the contents and possibly update the database with the changes. Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onRowEnter, Semantic event, XML object, XML.event See also: onRowsDelete (Event handler) Some rows are about to be deleted from the database. JScript 3.0 Boolean primitive Availability: Internet Explorer 4.0 Property/method value type: This event fires when rows are about to be deleted from the recordset. You may want to intercept this event and check whether you really do want to delete these rows. See also: XML.event onRowsInserted (Event handler) Some new data is being inserted into the database. JScript 3.0 Boolean primitive Availability: Internet Explorer 4.0 Property/method value type: This event fires just after new rows are inserted in the current recordset. You may want to intercept this event to fix up some relationships in the database to maintain data integrity. 1651

Web server version - JavaScript Programmer’s Reference { if(document.layers) { if(typeof document.fix

May 3rd, 2008

JavaScript Programmer’s Reference { if(document.layers) { if(typeof document.fix == “undefined”) { document.resizeFix = new Object(); document.resizeFix.initWidth = window.innerWidth; document.resizeFix.initHeight = window.innerHeight; } window.onresize = resizeFix; } } // This calls the browser check function above checkBrowser(); See also: Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, Semantic event, Window events, Window.onresize onRowEnter (Event handler) The data in a field bound to a data source is about to be changed. JScript 3.0 Availability: Internet Explorer 4.0 Property/method value type: Boolean primitive JavaScript syntax: myObject.onrowenter = aHandler IE HTML syntax: Argument list: aHandler A reference to a function object to handle the event TEXTAREA, BODY, IMG, Select, TH, BUTTON, Input, Supported by objects: APPLET, DIV, MARQUEE, TD, AREA, Document, OBJECT, TABLE, This event is triggered for those data driven systems that need to track row and column changes to the data containers that are associated with a database. It fires to indicate that the current row has changed in the data source and new data values are available on the object. Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onRowExit, Semantic event, XML object, XML.event See also: 1650

O onResize (Event handler) This event is (Web server on xp)

May 3rd, 2008

O onResize (Event handler) This event is triggered when a window is enlarged or reduced in size. The handler is registered by defining it with an HTML tag attribute. The handler can also be registered by assigning the function object to the onresize property of the window. The event is also triggered when a window is resized under control of a script with the resizeTo() or moveBy() methods. Warnings: . There are numerous issues with onResize events in Netscape 4.0. In particular, an onResize causes Netscape to “forget” positioning information for objects and absolutely positioned

blocks. . This could be fixed by simply making this assignment: self.onresize = self.reload; . This attaches a reload call to the resize event handler. However registering event handlers in this way on Netscape prior to version 6.0 has proven to be inconsistent. In this particular case it will cause a browser-crashing endless loop. . The crashing only happens on some versions of Netscape 4.0. The problem is caused because the resize event handler will fire a second Resize event when the window scrollbars are drawn once the page is loaded odd behavior. We’ve sat in front these browsers for years now and watched Netscape draw a page, then realize it can’t fit all the content in and so decide it needs scroll bars and draw it all again. However, up until recently we never realized that an onResize was being triggered as well if only we had a generic event watcher of some kind so we could see what is going on behind the scenes! . Anyway, the example suggests a fix and was provided by Jon Stephens. This demonstrates other subtle and neat tricks such as storing persistent values as member properties of the function object itself. Example code: // This checks to see if the window’s dimensions have // actually changed (because Netscape often fires a // false onResize event when it forms scrollbars); // if the dimensions have changed, the document is // reloaded. // Note that document.location is not supposed to be // settable, but here’s another case where the // implementation does not match the specs. function resizeFix() { if((document.resizeFix.initWidth != window.innerWidth) ||(document.resizeFix.initHeight != window.innerHeight)) { document.location = document.location; } } // This function checks to see if the browser supports the // Layer object (i.e., Netscape 4.X); // If it does, then it creates a new object with properties // to hold the current window width & height and assigns // the resizeFix() function to the window’s onResize event. function checkBrowser() 1649

JavaScript Programmer’s Reference (Business web site) onReset (Event handler) The user

May 2nd, 2008

JavaScript Programmer’s Reference onReset (Event handler) The user has clicked a reset button in a form. Availability: JavaScript 1.1 JScript 3.0 Internet Explorer 4.0 Netscape 3.0 Opera browser 3.0 Property/method value type: Boolean primitive JavaScript syntax: -myObject.onreset = aHandler HTML syntax: Argument list: aHandler A reference to a function object to handle the event Supported by objects: FORM As the reset button is clicked, this event is triggered. If you return the value true, the event will be passed to the browser for further processing and the form will be reset. Returning falseinhibits this action and discards the message, and the form will not be reset. This provides a means of inhibiting resets altogether. Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onClick, onMouseDown, onMouseUp, onSubmit, Semantic event See also: onResize (Event handler) As the window is resized, this event is triggered. Availability: JavaScript 1.2 JScript 3.0 Internet Explorer 4.0 Netscape 4.0 Property/method value type: Boolean primitive JavaScript syntax: -myObject.onresize = aHandler HTML syntax: Argument list: aHandler A reference to a function object to handle the event Supported by objects: APPLET, FIELDSET, MARQUEE, Input, AREA, FRAMESET, Select, TD, BUTTON, IMG, TABLE, Window, DIV, , , Moving or resizing windows may be something your scripts will need to know about. A move is generally harmless, but a resize may not be so benign to your page content. This event trigger provides a means to fix up the display if the window aspect ration or size is changed. 1648

Dedicated web hosting - O onPropertyChange (Event handler) onPropertyChange (Event handler)

May 1st, 2008

O onPropertyChange (Event handler) onPropertyChange (Event handler) Called when a property belonging to the receiving object is changed. Availability: JScript 5.0 Internet Explorer 5.0 JavaScript syntax: IE myObject.onpropertychange = aHandler This is part of the property monitoring facilities. It can be used as an alternative to the watch()/unwatch() facilities in Netscape. When this event is triggered, the handler can inspect the event object to determine what property was changed and on what object. The object affected is returned in the srcElement property and the property in its propertyName property. Event, Event handler, Event model, Event names, Event object, Event.propertyName, Event.returnValue, Event.srcElement, Handler, Semantic event, unwatch(), watch() See also: onReadyStateChange (Event handler) An object in the window has changed its ready state. JScript 3.0 Boolean primitive myObject.onreadystatechange = aHandler IE aHandler A reference to a function object to handle the event Availability: Internet Explorer 4.0 Property/method value type: JavaScript syntax: HTML syntax: Argument list: Supported by objects: APPLET, Document, OBJECT, STYLE, AREA, LINK, SCRIPT, This event fires when the state of the object has changed. Some objects may need to be completely loaded before you can properly interact with them. This is a means of getting a call-back when the ready state of an object changes. It saves the need for watching the readyState in a polling loop, which is wasteful of resources and a generally deprecated technique. Document.readyState, Element.readyState, Embed.readyState, Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, IMG.readyState, LINK.readyState, OBJECT.readyState, SCRIPT.readyState, Semantic event, STYLE.readyState, XML.event See also: 1647

Unlimited web hosting - JavaScript Programmer’s Reference onMove (Event handler) The browser

May 1st, 2008

JavaScript Programmer’s Reference onMove (Event handler) The browser window has been moved. Availability: JavaScript 1.2 Netscape 4.0 Property/method value type: Boolean primitive JavaScript syntax: -myObject.onmove = aHandler HTML syntax: Argument list: aHandler A reference to a function object to handle the event Supported by objects: Window Moving the browser window usually won’t cause any problems. However, if you have some window content that you want to position relative to the screen, or if you want to locate the window at a specific location, perhaps locating it on a grid, this event may be useful. The event is triggered when a window is moved on the screen to another location. The handler is registered by defining it with an HTML tag attribute or by assigning a handler function to the property. The event is also triggered when a window is moved under control of a script with the moveTo() or moveBy() methods. Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, Semantic event, Window events, Window.onmove See also: onPaste (Event handler) Called when a Paste operation is requested by the user. Availability: JScript 5.0 Internet Explorer 5.0 JavaScript syntax: IE myObject.onpaste = aHandler This is useful if you want to intercept and possibly block a paste operation where the user may be attempting to paste some external content into a text field. Perhaps you do want to let them do it but you want to be sure the contents are checked for data integrity. See also: Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onCopy, onCut, Semantic event 1646

O onMouseUp (Event handler) onMouseUp (Event handler) (Web hosting india)

April 30th, 2008

O onMouseUp (Event handler) onMouseUp (Event handler) Triggered when the mouse button is released. HTML version 4.0 JavaScript 1.2 JScript 3.0 Internet Explorer 4.0 Netscape 4.0 Opera browser 3.0 Boolean primitive myObject.onmouseup = aHandler aHandler A, DIR, LEGEND, STRONG, ACRONYM, DIV, LI, SUB, ADDRESS, DL, LISTING, SubmitButton, Anchor, Document, MAP, SUP, APPLET, DT, MARQUEE, TABLE, AREA, EM, MENU, TBODY, B, FIELDSET, OL, TD,BIG, FileUpload, P, TEXTAREA, BLOCKQUOTE, FONT, Password, TextCell, BODY, FORM, PLAINTEXT, TFOOT, BUTTON, H1, PRE, TH, CAPTION, HR, Q, THEAD, CENTER, I, ResetButton, TR, Checkbox, IMG, S, TT, CITE, Input, SAMP, U,CODE, INS, Select, UL, DD, KBD, SMALL, Url, DEL, LABEL, SPAN, VAR, DFN, Layer, STRIKE, Property/method value type: JavaScript syntax: - HTML syntax: Argument list: Supported by objects: Availability: A reference to a function object to handle the event. As the mouse button is released, this event is triggered. If you return the value true, the event will be passed to the browser for further processing. Returning false inhibits this action and discards the message. Netscape indicates which mouse button was pressed in the which property of the event object that is passed as an argument to the event handler function. MSIE makes the value available in the buttonproperty of the event object referenced by the window.event property. DOM level 2 classifies this as a MouseEventand specifies that it uses bubbling propagation and can be canceled. Warnings: . When you release the mouse button, you get a MouseUp raw event and a Click semantic event. Be careful that you know you are only calling event handlers once. . This is not supported on the WebTV platform. Element object, Event, Event handler, Event model, Event names, Event object, Event.button, Event.returnValue, Event.which, Handler, JellyScript, Mouse events, MouseEvent object, onClick, onDblClick, onMouseDown, onReset, onSelect, onSubmit, Semantic event See also: 1645