<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Tutorial%2FEvent%2FEvent_Object</id>
		<title>JavaScript Tutorial/Event/Event Object - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Tutorial%2FEvent%2FEvent_Object"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Tutorial/Event/Event_Object&amp;action=history"/>
		<updated>2026-04-05T02:57:25Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_Tutorial/Event/Event_Object&amp;diff=8771&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Tutorial/Event/Event_Object&amp;diff=8771&amp;oldid=prev"/>
				<updated>2010-05-26T08:24:33Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 08:24, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_Tutorial/Event/Event_Object&amp;diff=8770&amp;oldid=prev</id>
		<title> в 18:52, 25 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Tutorial/Event/Event_Object&amp;diff=8770&amp;oldid=prev"/>
				<updated>2010-05-25T18:52:56Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Add event handler to form==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt; &lt;br /&gt;
&amp;lt;head&amp;gt; &lt;br /&gt;
&amp;lt;title&amp;gt;W3C DOM Event Propagation&amp;lt;/title&amp;gt; &lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt; &lt;br /&gt;
function init() { &lt;br /&gt;
    document.forms[0].addEventListener(&amp;quot;click&amp;quot;, formBubbleEvent, false); &lt;br /&gt;
} &lt;br /&gt;
function formBubbleEvent(evt) { &lt;br /&gt;
    alert(&amp;quot;FORM only on BUBBLE.&amp;quot;); &lt;br /&gt;
} &lt;br /&gt;
function getPhase(evt) { &lt;br /&gt;
    switch (evt.eventPhase) { &lt;br /&gt;
        case 1: &lt;br /&gt;
        return &amp;quot;CAPTURING&amp;quot;; &lt;br /&gt;
            break; &lt;br /&gt;
        case 2: &lt;br /&gt;
        return &amp;quot;AT TARGET&amp;quot;; &lt;br /&gt;
            break; &lt;br /&gt;
        case 3: &lt;br /&gt;
        return &amp;quot;BUBBLING&amp;quot;; &lt;br /&gt;
            break; &lt;br /&gt;
        default: &lt;br /&gt;
        return &amp;quot;&amp;quot;; &lt;br /&gt;
    } &lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/script&amp;gt; &lt;br /&gt;
&amp;lt;/head&amp;gt; &lt;br /&gt;
&amp;lt;body onload=&amp;quot;init()&amp;quot;&amp;gt; &lt;br /&gt;
&amp;lt;form&amp;gt; &lt;br /&gt;
&amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Button &amp;quot;main1&amp;quot;&amp;quot; name=&amp;quot;main1&amp;quot; onclick=&amp;quot;alert(&amp;quot;button (&amp;quot; + getPhase(event) + &amp;quot;).&amp;quot;)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/form&amp;gt; &lt;br /&gt;
&amp;lt;/body&amp;gt; &lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Event==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The Event object represents an event.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Properties of the Event Object is listed in the following table.&amp;lt;/p&amp;gt;&lt;br /&gt;
Property&lt;br /&gt;
Description&lt;br /&gt;
data&lt;br /&gt;
Array of URL&amp;quot;s for dragged and dropped objects&lt;br /&gt;
height&lt;br /&gt;
Height of window&lt;br /&gt;
layerX&lt;br /&gt;
Horizontal cursor position within layer&lt;br /&gt;
layerY&lt;br /&gt;
Vertical cursor position within layer&lt;br /&gt;
modifiers&lt;br /&gt;
Bit mask representing modifier keys&lt;br /&gt;
pageX&lt;br /&gt;
Horizontal cursor position within Web page&lt;br /&gt;
pageY&lt;br /&gt;
Vertical cursor position within Web page&lt;br /&gt;
screenX&lt;br /&gt;
Horizontal cursor position within computer screen&lt;br /&gt;
screenY&lt;br /&gt;
Vertical cursor position within computer screen&lt;br /&gt;
target&lt;br /&gt;
Object for captured events&lt;br /&gt;
type&lt;br /&gt;
Type of event&lt;br /&gt;
which&lt;br /&gt;
The mouse button that is pressed&lt;br /&gt;
width&lt;br /&gt;
Width of window&lt;br /&gt;
&amp;lt;p&amp;gt;In addition to the Event properties, events exist that get handled.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The available events are shown in the following Table.&amp;lt;/p&amp;gt;&lt;br /&gt;
Events&lt;br /&gt;
Description&lt;br /&gt;
ABORT&lt;br /&gt;
Loading of Web page interrupted by user.&lt;br /&gt;
BLUR&lt;br /&gt;
Focus is removed from the object.&lt;br /&gt;
CHANGE&lt;br /&gt;
Contents or setting for document object changed.&lt;br /&gt;
CLICK&lt;br /&gt;
Mouse button is clicked once.&lt;br /&gt;
DBLCLICK&lt;br /&gt;
Mouse button is clicked twice.&lt;br /&gt;
DRAGDROP&lt;br /&gt;
Object is dragged and dropped.&lt;br /&gt;
ERROR&lt;br /&gt;
Error occurred during loading.&lt;br /&gt;
FOCUS&lt;br /&gt;
Focus is applied to an object.&lt;br /&gt;
KEYDOWN&lt;br /&gt;
A key is pressed down.&lt;br /&gt;
KEYPRESS&lt;br /&gt;
A key is pressed.&lt;br /&gt;
KEYUP&lt;br /&gt;
A key is let up after being pressed down.&lt;br /&gt;
LOAD&lt;br /&gt;
Load document within a browser.&lt;br /&gt;
MOUSEDOWN&lt;br /&gt;
The mouse button is pressed down.&lt;br /&gt;
MOUSEMOVE&lt;br /&gt;
The mouse cursor is moved.&lt;br /&gt;
MOUSEOUT&lt;br /&gt;
The mouse cursor is moved away from a specific object.&lt;br /&gt;
MOUSEOVER&lt;br /&gt;
The mouse cursor is moved over a specific object.&lt;br /&gt;
MOUSEUP&lt;br /&gt;
The pressed mouse button is let up.&lt;br /&gt;
MOVE&lt;br /&gt;
Object is moved on the screen.&lt;br /&gt;
RESET&lt;br /&gt;
Reset button is pressed.&lt;br /&gt;
RESIZE&lt;br /&gt;
Window or frame has been resized.&lt;br /&gt;
SELECT&lt;br /&gt;
Document object is selected.&lt;br /&gt;
SUBMIT&lt;br /&gt;
Submit button is pressed.&lt;br /&gt;
UNLOAD&lt;br /&gt;
Document is unloaded from browser.&lt;br /&gt;
&lt;br /&gt;
== Event.ABORT==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The ABORT property is used by images and refers to the event in which a transfer is interrupted or aborted by a user.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Example of Event.ABORT&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language = &amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function handleAbort(evnt){&lt;br /&gt;
        alert(&amp;quot;An ABORT event has occurred.&amp;quot;);&lt;br /&gt;
        return true;&lt;br /&gt;
    }&lt;br /&gt;
    document.onabort = handleAbort;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Event.CHANGE==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The CHANGE property is used by any text-related and select-box form elements to indicate a change in the element settings.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Example of Event.CHANGE&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function handleChange(evnt){&lt;br /&gt;
        alert(&amp;quot;The text in TextBox1 has been changed&amp;quot;);&lt;br /&gt;
        return true;&lt;br /&gt;
    }&lt;br /&gt;
    document.onchange = handleChange;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    This triggers an alert box to open&lt;br /&gt;
    up informing you that the text in box 1 has been changed.&lt;br /&gt;
    &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
    &amp;lt;form name=&amp;quot;form1&amp;quot;&amp;gt;&lt;br /&gt;
    TextBox1:&lt;br /&gt;
    &amp;lt;input type=&amp;quot;text&amp;quot; size=&amp;quot;20&amp;quot; name=&amp;quot;text1&amp;quot; onChange=&amp;quot;&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
    TextBox2:&lt;br /&gt;
    &amp;lt;input type=&amp;quot;text&amp;quot; size=&amp;quot;20&amp;quot; name=&amp;quot;text2&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.data==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The data property references an array of strings for events of objects that have been dragged and dropped.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Each string in the array contains a URL representing the dropped object.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Example of the event.data property&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function handleDragDrop(evnt){&lt;br /&gt;
        tmp = new Array();&lt;br /&gt;
        tmp = evnt.data;&lt;br /&gt;
        alert(&amp;quot;The URL for the dragdrop object is: &amp;quot; + tmp);&lt;br /&gt;
        return true;&lt;br /&gt;
    }&lt;br /&gt;
     window.ondblclick = handleDragDrop;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
    Drag and drop an object to the browser.&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.height==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The height property controls the height of a window or frame during the RESIZE event.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Example of the event.height property&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language = JavaScript&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function handle(evnt){&lt;br /&gt;
        alert(&amp;quot;A RESIZE event has occurred. The new height of the window is: &amp;quot; + evnt.height);&lt;br /&gt;
        return true;&lt;br /&gt;
    }&lt;br /&gt;
    window.onresize = handle;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;form name=&amp;quot;form1&amp;quot;&amp;gt;&lt;br /&gt;
      Drag the browser border to trigger the resize event&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.layerX==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The layerX property controls the horizontal (x-coordinate) positioning within the layer.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Using the layerX property for the event object&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function changeSize(){&lt;br /&gt;
         window.resizeTo(300,400);&lt;br /&gt;
    }&lt;br /&gt;
    function handle(evnt){&lt;br /&gt;
        alert(&amp;quot;The new width (X value) after the resize is: &amp;quot; + evnt.layerX);&lt;br /&gt;
        return true;&lt;br /&gt;
    }&lt;br /&gt;
    window.onresize = handle;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
          Drag the browser border to trigger the resize event&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.layerY==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The layerY property controls the vertical (y-coordinate) positioning within the layer.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;When a window or frame is resized, the new value for the vertical coordinate is stored in the layerY property.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Using the layerY property for the event object&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function handle(evnt){&lt;br /&gt;
        alert(&amp;quot;The new height (Y value) of the window object after the resize is: &amp;quot; + evnt.layerY);&lt;br /&gt;
        return true;&lt;br /&gt;
    }&lt;br /&gt;
    window.onresize = handle;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    Resize the browser to see the result.&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.pageX==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The pageX property controls the horizontal (x-coordinate) positioning within a Web page.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Example of the event.pageX property&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language = &amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    window.captureEvents(Event.CLICK);&lt;br /&gt;
    function handle(evnt){&lt;br /&gt;
      alert(&amp;quot;The X coordinate of where the click event occurred is: &amp;quot; + evnt.pageX);&lt;br /&gt;
      return true;&lt;br /&gt;
    }&lt;br /&gt;
    window.onclick = handle;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;form&amp;gt;&lt;br /&gt;
    Click in the web browser.&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.pageY==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The pageY property of the Event object controls the vertical (y-coordinate) positioning.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Example of the event.pageY property&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language = &amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function handle(evnt){&lt;br /&gt;
      alert(&amp;quot;The Y coordinate of where the click event occurred is: &amp;quot; + evnt.pageY);&lt;br /&gt;
      return true;&lt;br /&gt;
    }&lt;br /&gt;
    window.onclick = handle;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    Click in the web browser.&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.screenX==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The screenX property controls the horizontal (x-coordinate) positioning within the computer screen.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Example of the event.screenX property&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language = &amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function handle(evnt){&lt;br /&gt;
        alert(&amp;quot;The X coordinate relative to the computer screen of where the click occurred is: &amp;quot; + evnt.screenX);&lt;br /&gt;
        return true;&lt;br /&gt;
    }&lt;br /&gt;
    window.onclick = handle;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    Click in the web browser.&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.screenY==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The screenY property controls the vertical (y-coordinate) positioning within the computer screen.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Example of the event.screenY property&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language = &amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function handle(evnt){&lt;br /&gt;
        alert(&amp;quot;The Y coordinate relative to the computer screen of where the click occurred is: &amp;quot; + evnt.screenY);&lt;br /&gt;
        return true;&lt;br /&gt;
    }&lt;br /&gt;
    window.onclick = handle;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    Click in the web browser.&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.target==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The target property refers to the object on which the event takes place.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Using the target property of the event object&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language = &amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function whichButton(evnt){&lt;br /&gt;
         window.captureEvents(evnt.CLICK);&lt;br /&gt;
         alert(&amp;quot;The button you pressed was:&amp;quot; + evnt.target.value);&lt;br /&gt;
    }&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;form name=&amp;quot;form1&amp;quot;&amp;gt;&lt;br /&gt;
    Choose a button and click on it.&lt;br /&gt;
    &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
    &amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Button1&amp;quot; name=&amp;quot;Button1&amp;quot; onClick = whichButton(event)&amp;gt;&lt;br /&gt;
    &amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Button2&amp;quot; name=&amp;quot;Button2&amp;quot; onClick = whichButton(event)&amp;gt;&lt;br /&gt;
    &amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Button3&amp;quot; name=&amp;quot;Button3&amp;quot; onClick = whichButton(event)&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.type==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The type property refers to the type of event that occurred. The value assigned to type is a string representing the name of the event.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Using the type property for the event object&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language=&amp;quot;Javascript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function handle(evnt){&lt;br /&gt;
        if(evnt.type == &amp;quot;click&amp;quot;){&lt;br /&gt;
            document.form1.msg.value += &amp;quot;The click event occurred.\n&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
        if(evnt.type == &amp;quot;mousedown&amp;quot;){&lt;br /&gt;
            document.form1.msg.value += &amp;quot;The mousedown event occurred.\n&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
        if(evnt.type == &amp;quot;keypress&amp;quot;){&lt;br /&gt;
            document.form1.msg.value += &amp;quot;The keypress event occurred.\n&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
        return true;&lt;br /&gt;
    }&lt;br /&gt;
    document.onkeypress = handle;&lt;br /&gt;
    document.onclick = handle;&lt;br /&gt;
    document.onmousedown = handle;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;form name=&amp;quot;form1&amp;quot;&amp;gt;&lt;br /&gt;
    This page demonstrates a few different events. &lt;br /&gt;
    Upon events occurring, a message will be displayed in the textarea indicating which event occurred.&lt;br /&gt;
    &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
    &amp;lt;ul&amp;gt;&lt;br /&gt;
    &amp;lt;li&amp;gt;&amp;lt;input type=&amp;quot;Button&amp;quot; value=&amp;quot;Click Me&amp;quot;&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
    &amp;lt;li&amp;gt;&lt;br /&gt;
    Dummy text area.&lt;br /&gt;
    &amp;lt;input type=&amp;quot;text&amp;quot; size=&amp;quot;20&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;br&amp;gt;&lt;br /&gt;
    Click mouse in text field.&lt;br /&gt;
    &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
    &amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
    &amp;lt;b&amp;gt;Message output:&amp;lt;/b&amp;gt;&lt;br /&gt;
    &amp;lt;textarea name=&amp;quot;msg&amp;quot; rows=&amp;quot;10&amp;quot; cols=&amp;quot;60&amp;quot;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;br /&gt;
    &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
    &amp;lt;input type=&amp;quot;reset&amp;quot; value=&amp;quot;Clear&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.which==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The which property refers to which key or mouse button was pressed or clicked.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The value returned for mouse events is a numeric value 1, 2, or 3, representing the left, middle, and right mouse buttons, respectively.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The value returned for keyboard events is a character representation for the key that was pressed.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Using the which property of the event object&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form&amp;gt;&lt;br /&gt;
    This example uses the which property of the event object to determine&lt;br /&gt;
    which mouse button is pressed.&lt;br /&gt;
    &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
    &amp;lt;input type=&amp;quot;radio&amp;quot; onClick = &amp;quot;alert(&amp;quot;Mouse button Number &amp;quot; + event.which + &amp;quot;was pressed.&amp;quot;)&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== event.width==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The width property refers to the width of a window or frame.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It is set during the RESIZE event to the new width of window or frame being resized.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Example of the event.width property&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;script language = JavaScript&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function handle(evnt){&lt;br /&gt;
        alert(&amp;quot;An RESIZE event has occurred. The new width of the window is: &amp;quot; + evnt.height);&lt;br /&gt;
        return true;&lt;br /&gt;
    }&lt;br /&gt;
    window.onresize = handle;&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    Resize browser to see the result&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>