Event object: (an Event object is a property of a Window object that, when an event occurs, produces an event object, the event ends, and an event object disappears)
In IE: window.event;//get objects
DOM: argument[0];//fetching objects
The
General Events
OnClick IE3, N2 when mouse clicks trigger this event
OnDblClick IE4, N4 mouse Double-click to trigger this event
OnMouseDown IE4, N4 trigger this event when the mouse is pressed
This event is triggered when the mouse is onmouseup IE4,
JavaScript event events and getting the mouse cursor--
JavaScript event events and getting the mouse cursorJavaScript event events and getting the mouse cursor
Solid
#CCCCCC "> Latest news [close]
Color= ' Red ' >10 month 23rd Windows host
1, through the Print Screen SYSRQ key to complete Full-screen screenshot:
The Print screen SysRq key, which is located in the upper right of the keyboard, presses this key to achieve full screen screenshots of the current screens, that is, you can
Event.clientx returns the x-coordinate of the mouse relative to the client window when the event occursEvent. So does X.However, if you set the Location property value of an event object to relativeEvent.clientx, no change.and event. x returns the
How to implement Lazyload's picture delay loading functionThe difficulty of lazyload is how to load the resources the user needs at the right time (where the user needs resources that are rendered in the browser's viewable area). So we need to know
If the mouse moves outside the window after the event is triggered, the value returned is-1This is a read-only property. This means that you can only get the current position of the mouse through it, but you cannot use it to change the position of
Copy Code code as follows:
function $$ () {
return selector.findchildelements (document, $A (arguments));
}
This class can be divided into three parts: the first part is based on different browsers to determine what DOM action to
Altkey, Button, cancelbubble, ClientX, ClientY, Ctrlkey, Fromelement, KeyCode, OffsetX, OffsetY, PropertyName, Returnvalu E, ScreenX,
ScreenY, Shiftkey, srcelement, Srcfilter, toelement, type, x, y
1.altKey Description: Check the status of the ALT
Introduction:
This weekend is OK, think of the front of their own to do a business E-commerce platform, there are some places not perfect, think of perfect, well, the problem is this, in the E-commerce platform has such a scene, I put the shopping
Copy Code code as follows:
function Window.onunload () {alert (' This is what you want to do, after closing the page! '); Location = ' sessionclear.aspx '; }
function Window.onbeforeunload () {alert (' This is what you want to do, before
Cdc::setmapmode
virtual int setmapmode (int nmapmode );
Function Description: This function sets the mapping method for the specified device environment, which defines the unit of measure that converts logical units to unit units, and defines the
Altkey, Button, cancelbubble, ClientX, ClientY, Ctrlkey, Fromelement, KeyCode, OffsetX, OffsetY, PropertyName, Returnvalu E, ScreenX,
ScreenY, Shiftkey, srcelement, Srcfilter, toelement, type, x, y
1.altKey Description: Check the status of the ALT
Web|window| Object | design
What is "window"?
Windows represents an open window in the browser.
Window's Properties
Property
Description
Closed
Gets whether the reference window is closed.
Defaultstatus
The theory and realization of the unified style and beautiful interface design
A Windows and Dialog boxes
Windows and dialogs are the same in our view, a quadrilateral, with a title bar, a system button, a border, and so on, movable and variable
DOM elements have some standard events. Generally, you only need to use the onclickfunction method. However, when you need to add multiple events to the DOM element, delete the event, or when Javascript is used to encapsulate controls, DOM elements
The left IE button is window. event. right-click button1 and choose window. event. in button2, the key is window. event. button4 has no button action window. event. the left button of button0Firefox is event. right-click "button0" and select "event.
1. Understanding and knowledge of Web standards and websiteThe Web Standard specification requires that the writing tag is closed, lowercase, and not nested, which can improve the search robot's chances of searching for Web content. ---SEOUsing the
From the beginning of this semester has been learning self-painting Control (MFC), the goal is to make a player interface, mainly to lay a good foundation, because my foundation is really rotten .... Talk about my own experience and the method of
This article describes how to use JS events. Some attributes of events only make sense for specific events. For example, the fromElement and toElement attributes only make sense for onmouseover and onmouseout events.
JS event usage
Event indicates
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.