zoukankan      html  css  js  c++  java
  • html 事件(Event)

    Dynamic HTML allows to create really interactive web-pages. It becomes possible using events in HTML. HTML can process events from keyboard and mouse, and also some specific events, for example, occurring where form's data was changed. For processing of events data you may use JavaScript or VBScript.

    All HTML events are listed in table below.

    List of keyboard events
    onkeydown Occurs when a key is pressed
    onkeypress Occurs when the key is pressed and released
    onkeyup Occurs when the key is released
    onhelp Occurs when the F1 key if pressed
    List of mouse events
    onmousedown Occurs where mouse button is pressed.
    onmousemove Occurs where mouse points moves above an element.
    onmouseup Occurs where mouse button is released.
    onmouseout Occurs when mouse pointer moves out of an element
    onclick Occurs on a mouse click
    ondblclick Occurs on a mouse double click
    List of focus events
    onfocus Occurs where element get a focus
    onblur Occurs where element lost a focus
    List of other tag-specific events
    onabort Occurs if loading of picture is aborted. this event occurs only in <img> tag.
    onerror Occurs on error of loading picture (for example, if file not found). this event occurs only in <img> tag.
    onchange Occurs where content of object is changes. Occurs in checkboxes, radioboxes, passwordboxes, textboxes.
    onload Occurs where page loading is complete. Uses in <body> tag.
    onselect Occurs where a fragment of text was selected. Uses in text <input> elements: text, password, textarea.
    onsubmit Occurs before form data will submitted.

    From: http://www.tufat.com/html_tutorials/HTMLEvents.php

  • 相关阅读:
    谷哥的小弟学后台(29)——动态代理
    HDU
    jni 入门 android的C编程之旅 --->环境搭建&&helloworld
    C# 开发系列(二)
    C# 开发系列(一)
    ajax跨域实现api 接口调用
    dependency injection(2)
    要读的书单
    dependency injection
    php dependency innjection
  • 原文地址:https://www.cnblogs.com/xlmeng1988/p/2918948.html
Copyright © 2011-2022 走看看