المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : دليل JavaScript Events



loulou ange
11-01-2013, بتوقيت غرينيتش 09:36 AM
http://www.dzbatna.com/images/icons/icon20.gif ط¯ظ„ظٹظ„ JavaScript Events (http://www.dzbatna.com/t571066/)




JavaScript Events

JavaScript Events are items that transpire based on an action. A document event is the loading of an HTML document. A form event is the clicking on a button. Events are objects with properties.
Event Properties


x -Mouse x coordinate when the event happened.
y -Mouse y coordinate when the event happened.

JavaScript defines five types of events which are form, image, image map, link, and window events. Events are associated with HTML tags. The definitions of the events described below are as follows:
Form Events


blur - The input focus was lost.
change - An element lost the focus since it was changed.
focus - The input focus was obtained.
reset - The user reset the object, usually a form.
select - Some text is selected
submit - The user submitted an object, usually a form.

Image Events


abort - A user action caused an abort.
error - An error occurred.
load - The object was loaded.

Image Map Events


mouseOut - The mouse is moved from on top a link.
mouseOver - The mouse is moved over a link.

Link Events


click - An object was clicked.
mouseOut - The mouse is moved from on top a link.
mouseOver - The mouse is moved over a link.

Window Events


blur - The input focus was lost.
error - An error occurred.
focus - The input focus was obtained.
load - The object was loaded.
unload - The object was exited.

http://www.myaffiliateprogram.com/u/globalsp/se.asp?e=65&id=1393
Event Association


Events are associated with HTML tags. The definitions of the events described below are as follows:



abort - A user action caused an abort of an image or document load.


blur - A frame set, document, or form object such as a text field loses the focus for input.


click - Happens when a link or image map is clicked on


change - Happens when a form field is changed by the user and it loses the focus.


error - An error happened loading a image or document.


focus - A frame set, document, or form object such as a text field gets the focus for input.


load - The event happens when an image or HTML page has completed the load process in the browser.


mouseOut - The event happens when the mouse is moved from on top of a link or image map


mouseOver - The event happens when the mouse is placed on a link or image map.


reset - The user reset the object which is usually a form.


submit - The user submitted an object which is usually a form.


unload - The object such as a framesed or HTML document was exited by the user.



The events for each HTML tag are as follows:



<A>



click (onClick)


mouseOver (onMouseOver)


mouseOut (onMouseOut)




<AREA>



mouseOver (onMouseOver)


mouseOut (onMouseOut)




<BODY>



blur (onBlur)


error (onError)


focus (onFocus)


load (onLoad)


unload (onUnload)




<FORM>



submit (onSubmit)


reset (onReset




<FRAME>



blur (onBlur)


focus (onFocus)




<FRAMESET>



blur (onBlur)


error (onError)


focus (onFocus)


load (onLoad)


unload (onUnload)




<IMG>



abort (onAbort)


error (onError)


load (onLoad)




<INPUT TYPE = &quot;button&quot;>



click (onClick)




<INPUT TYPE = &quot;checkbox&quot;>



click (onClick)




<INPUT TYPE = &quot;reset&quot;>



click (onClick)




<INPUT TYPE = &quot;submit&quot;>



click (onClick)




<INPUT TYPE = &quot;text&quot;>



blur (onBlur)


focus (onFocus)


change (onChange)


select (onSelect)




<SELECT>



blur (onBlur)


focus (onFocus)


change (onChange)




<TEXTAREA>



blur (onBlur)


focus (onFocus)


change (onChange)


select (onSelect)








المصدر (http://www.comptechdoc.org/independent/web/cgi/javamanual/javaevents.html)





ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)




https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©

استعمل مربع البحث في الاسفل لمزيد من المواضيع


سريع للبحث عن مواضيع في المنتدى