| ★ wanayoo — archive 1999 http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/fireevent.asp | Nouvelle recherche | Portail wanayoo |
![]() |
![]() |
All Products | Support | Search | microsoft.com Home |
![]() | ||
| Home | Magazines | Libraries | Developer Centers | Resources | Downloads | Search MSDN | ||
|
||||||||||
| ||||||||||
Fires a specified event on the object.
Syntax
bFired = object.fireEvent(sEvent [, oEventObject])Parameters
sEvent Required. String that specifies the name of the event to fire. oEventObject Optional. Object that specifies the event object from which to obtain event object properties.
Return Value
Boolean. Returns one of the following values:
true Event fired successfully. false Event was cancelled.
Remarks
If the event being fired cannot be cancelled, fireEvent always returns true.
Regardless of their values specified in the event object, the values of the four event properties—cancelBubble, returnValue, srcElement, and type—are automatically initialized to the values shown in the following table.
Event object property Value cancelBubble false returnValue true srcElement element on which the event is fired type name of the event that is fired
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, body, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, styleSheet, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, title, TR, TT, U, UL, VAR, WBR, XML, XMP
See Also
createEventObject
| Back to top |
| Did you find this topic useful? Suggestions for other topics? Write us! |
| © 2000 Microsoft Corporation. All rights reserved. Terms of use. |