Java Script tips [object, attribute]

Source: Internet
Author: User

If you are looking for Javascript, we recommend that you press Ctrl + F to search for it directly on this page, because here 80% is what you are looking for, but if you want to watch it, you have to finish watching and then try glasses !!

    • Event source object
      Event. srcelement. tagname
      Event. srcelement. Type
    • Capture and release
      Event. srcelement. setcapture ();
      Event. srcelement. releasecapture ();
    • Event buttons
      Event. keycode
      Event. shiftkey
      Event. altkey
      Event. ctrlkey
    • Event Return Value
      Event. returnvalue
    • Mouse position
      Event. x
      Event. Y
    • Form Activity element
      Document. activeelement
    • Bind event
      Document. captureevents (event. keydown );
    • Access form elements
      Document. All ("TXT"). Focus ();
      Document. All ("TXT"). Select ();
    • Form commands
      Document.exe ccommand
    • Form cookie
      Document. Cookie
    • Menu events
      Document. oncontextmenu
    • Create Element
      Document. createelement ("span ");
    • Obtain the element with the mouse:
      Document. elementfrompoint (event. X, event. Y). tagname = "TD
      Document. elementfrompoint (event. X, event. Y). appendchild (MS)
    • Form Image
      Document. Images [Index]
    • Form event binding
      Document. onmousedown = scrollwindow;
    • Element
      Document. Form. elements [Index]
    • Object binding event
      Document. All. XXX. detachevent ('onclick', );
    • Number of plug-ins
      Navigator. plugins
    • Variable type
      Typeof ($ js_libpath) = "undefined"
    • Drop-down list
      Drop-down box. Options [Index]
      Drop-down box. Options. Length
    • Search for objects
      Document. getelementsbyname ("R1 ");
      Document. getelementbyid (ID );
    • Timing
      Timer = setinterval ('rollwindow () ', delay );
      Clearinterval (timer );
    • Uncode Encoding
      Escape (), Unescape
    • Parent object
      OBJ. parentelement (DHTML)
      OBJ. parentnode (DOM)
    • Exchange table rows
      Tableid. moverow (2, 1)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.