Deck 11: Working With Events and Styles Tutorial

ملء الشاشة (f)
exit full mode
سؤال
The event property evt.key returns the text of the key used in the event.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
During a mouse action, events cannot be fired more than once.
سؤال
A limitation of an event handler is that only one function can be applied to it at a time.
سؤال
All JavaScript properties must begin with an uppercase letter.
سؤال
The onclick event handler recognizes the propagation of events through the capture and bubbling phases.
سؤال
The mouseout event indicates the movement of a mouse pointer onto an element.
سؤال
The keypress event is fired in response to the computer generating a character.
سؤال
The dblclick event indicates that the mouse button has been double-clicked.
سؤال
When a user copies the content of an element in a browser window, the oncut event handler is used.
سؤال
The commands that a browser runs in response to an event is a script .
سؤال
A generic cursor should be listed first and custom cursors should be listed last so that a browser can display something if it is unable to support a custom cursor image.
سؤال
Good coding practice dictates that global variables must be used as much as possible in a program.
سؤال
The event model describes how events and objects interact within a web page and a web browser.
سؤال
The evt.pageY property returns the vertical coordinate (in pixels) of the mouse pointer relative to the document.
سؤال
The evt.target returns the object in which the event was initiated.
سؤال
Function operators are more flexible than function declarations, allowing a function to be placed anywhere a variable can be placed.
سؤال
Named functions are more concise and easier to manage than anonymous functions.
سؤال
The evt.eventPhase returns the object that is currently experiencing the event.
سؤال
The event object contains properties and methods associated with an event.
سؤال
JavaScript does not support hyphens in property names.
سؤال
The _____ is a mouse event object property that references the secondary object, where for the mouseover event, it i s the element that the pointer is leaving and for the mouseout event it is the element that the pointer is entering.

A) evt.which
B) evt.detail
C) evt.relatedTarget
D) evt.button
سؤال
The _____ object property references the browser window in which the event has occurred.

A) evt.target
B) evt.view
C) evt.currentTarget
D) evt.eventphase
سؤال
The _____ event handler is applied to a page when it is about to be unloaded by the browser.

A) onunload
B) onload
C) onbeforeunload
D) onbeforeload
سؤال
Which of the following provides the correct syntax for adding an event handler to a page element as an HTML attribute?

A) < element onevent = "script">
B) element = "script">
C) element = "onevent">
D) element script = "onevent";>
سؤال
Which of the following statements is true about the evt.screenX mouse event?

A) It returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
B) It returns the horizontal coordinate (in pixels) of the mouse pointer relative to the physical screen.
C) It returns the horizontal coordinate (in pixels) of the secondary target of the event.
D) It returns the horizontal coordinate (in pixels) of the last mouse click relative to the screen
سؤال
In the evt.eventPhase property, identify the phase of the event propagation the object is currently at when its value is 2.

A) NONE
B) CAPTURING_PHASE
C) AT_TARGET
D) BUBBLING_PHASE
سؤال
The _____ event property returns a Boolean value that indicates whether the browser depends upon the event.

A) evt.type
B) evt.target
C) evt.isTrusted
D) evt.eventPhase
سؤال
In the _____ phase, the event moves down the object hierarchy, starting from the root element and moving inward until it reaches the object that initiated the event.

A) capture
B) target
C) bubbling
D) analyse
سؤال
Identify the mouse event property that returns an integer indicating the mouse button that was pressed, where 0 = none, 1 = left, 2 = wheel or middle, and 3 = right.

A) evt.which
B) evt.button
C) evt.buttons
D) evt.detail
سؤال
Which of the following mouse event properties returns the vertical coordinate (in pixels) of the mouse pointer relative to the browser window?

A) evt.clientY
B) evt.pageY
C) evt.screeenY
D) evt.whichY
سؤال
Which of the following is the correct syntax for a command in JavaScript to apply inline styles using the following style attribute? …

A) object.style = property:value
B) object.property = style.value
C) object .style. property = " value ";
D) object:style:property = "value";
سؤال
Which of following codes of an event handler records the exact window position of the mouse pointer as it maneuvers across an element?

A) document.getElementById("element1").onmouseenter = trackPointer; function trackPointer(e) { var hPos = e.clientX; document.getElementById("element2").innerText;
B) document.getElementById("element1").onmouseclick = trackPointer; function trackPointer(e) { var vPos = e.clientY; document.getElementById("element2").innerText = " (" + hPos + ", " + vPos + ")"; }
C) document.getElementById("element1").onmousemove = trackPointer; function trackPointer(e) { var hPos = e.clientX; var vPos = e.clientY; document.getElementById("element2").innerText = " (" + hPos + ", " + vPos + ")"; }
D) document.getElementById("element1").onmouseup = trackPointer; function trackPointer(e) { var hPos = e.clientX; document.getElementById("element2").innerText = " (" + hPos + ", " + vPos + ")"; }
سؤال
Which of the following event properties or methods returns a Boolean value that indicates whether an event can have its default action terminated?

A) evt .stopImmediatePropagation()
B) evt.stopPropogation()
C) evt.cancelable
D) evt.defaultPrevented
سؤال
Identify a true statement about the evt.eventPhase property.

A) It returns the object currently experiencing the event.
B) It returns a Boolean value indicating whether the event is trusted by the browser.
C) It returns the type of event.
D) It returns the stage of the event propagation the event object is currently at.
سؤال
Which of the following JavaScript methods is used to define an object collection based on a CSS (Cascading Style Sheets) selector?

A) document.querySelectorAll( selector )
B) document.getElementbyId(selector)
C) object .style. property = " value(selector) "
D) object.property = "value(selector)"
سؤال
Identify the event handler that does not recognize the propagation of the events through capture and bubbling phases.

A) onmouseout
B) onmouseleave
C) onmouseenter
D) onmousedown
سؤال
Which of the following JavaScript expressions is equivalent to the given HTML code?

A) document.getElementById("menu1").className = "menu";
B) document.getElementById("menu1")."menu";
C) Document.getelementbyId(menu1= "class name".menu);
D) Document.getelementbyId("menu1").menu= "class";
سؤال
Which of the following mouse buttons is pressed if the value of the evt.buttons property is 2?

A) the left mouse button
B) the right mouse button
C) the middle mouse button
D) the back mouse button
سؤال
Which of the following event object methods prevents other event listeners of the event from being called?

A) evt .stopImmediatePropagation()
B) evt .stopPropagation()
C) evt .preventDefault()
D) evt .cancelable()
سؤال
The _____ element is continuously fired as the mouse pointer hovers across an element with each new position registering that event.

A) mousemove
B) mouseover
C) mouseout
D) mouseleave
سؤال
Which of the following is the correct value of the charCode property for the keys "a, z" when the keyup and keydown events occur?

A) 65, 90
B) 97, 105
C) 49, 57
D) 0, 0
سؤال
Identify the syntax to remove an event listener.

A) object .removeEventListener( event , function [, capture = false]);
B) object .removeEventListener( event , function [, capture = true]);
C) object .removeEventListener( event , function [, bubbling = false]);
D) object .removeEventListener( event , function [,bubbling= false]);
سؤال
Identify the sequence of the occurrence of events when a user types a keyboard key.

A) keyup,keypress,keydown
B) keydown,keypress,keyup
C) keyup,keydown,keypress
D) keydown,keyup,keypress
سؤال
William wants to create a dialog box in his website to display the message "My name is William". Which of the following syntaxes must William use to display the message?

A) alert("My name is William")
B) confirm("My name is William")
C) prompt("My name is William")
D) print("My name is William")
سؤال
Identify the keyCode values of the modifier keys when the keyup and keydown events occur.

A) 16, 17, 18, 91
B) 37, 38, 39, 40
C) 0, 0, 0, 0
D) 65, 90, 97, 122
سؤال
Which of the following keyboard event properties returns the text of the key used in the event?

A) evt.altKey
B) evt.metaKey
C) evt.shiftKey
D) evt.key
سؤال
The keyCode values for the keys "1, 9" on the numeric pad when the keypress event occurs is _____.

A) 49, 57
B) 97, 105
C) 65, 90
D) 97, 122
سؤال
Identify the correct syntax to prevent a submit button from submitting a web form when clicked using the prevent default() method.

A) document.querySelector("input[type='submit']").onclick = runForm; function runForm(e) { function commands e.preventDefault(); }
B) document.querySelector("input[type='submit']").onclick = runForm;
C) document.querySelector("input[type='submit']").onclick = runForm; function runForm(e) { e.preventDefault(); }
D) document.querySelector("input[type='submit']").onclick = runForm; function runForm(e) { }
سؤال
Identify the syntax to add an event listener to an object.

A) object .addEventListener( event , function [, capture = true]);
B) object .addEventListener( event , function [, capture = false]);
C) object .addEventListener( event , function [, target = false]);
D) object .addEventListener( event , function [, target = true]);
سؤال
Which of the following is the correct location of a key on a keyboard if the value of the keyboard property evt.location is 3?

A) The key is located in the standard position.
B) The key is located on the keyboard's left edge.
C) The key is located on the keyboard's right edge.
D) The key is located on the numeric pad.
سؤال
Which of the following is the syntax to define a cursor in JavaScript?

A) object.cursorTypes = cursor.style;
B) object.style = cursorTypes;
C) object.style.cursor = cursorTypes;
D) object.style.cursorTypes = cursor;
سؤال
Which of the following browsers supports cursors only in CUR and ANI formats?

A) Microsoft Edge
B) Google Chrome
C) Mozilla Firefox
D) Opera Mini
سؤال
Identify a true statement about a function in JavaScript.

A) A function can be stored as a variable.
B) An object is passed through a function using the pass by value method.
C) A special function exists for multithreading in JavaScript.
D) An object is passed through a function using pass by reference method.
سؤال
Which of the following syntaxes displays a dialog box, causing the user to enter input text?

A) alert(text[,defaultInput])
B) confirm(text[,defaultInput])
C) prompt( text [, defaultInput ])
D) print(text[,defaultInput])
سؤال
John has created an object called Pines. He wants to change the cursor type to the pointer cursor. Which of the following syntaxes must John use to accomplish this?

A) document.getElementById("Pines").style.cursor = "pointer";
B) document.queryselector("Pines").cursor.style = "pointer";
C) document.queryselector("Pines").style = "pointer";
D) document.getElementById ("Pines").cursor = "pointer";
سؤال
Identify the correct charCode values for the keys "1, 9" on the top row of the keyboard when the keyup and keydown events occur.

A) 0, 0
B) 49, 57
C) 65, 90
D) 97, 122
سؤال
Which of the following is a true statement about an event listener?

A) It describes how events and objects interact within a web page and a web browser.
B) It allows a function to override another when multiple functions are added.
C) It permits only one function to be applied to an event listener at a time.
D) It responds to events during the target phase but does not recognize the propagation of events through the capture and bubbling phases.
سؤال
Identify a true statement about the evt.charCode keyboard event property.

A) It returns the text of the key used in the event.
B) It returns a Unicode character indicating whether the Alt key was used in the event object
C) It returns a Boolean value indicating whether the meta key was used in the event
D) It returns the Unicode character code of the key used in the keypress event.
سؤال
Which of the following keyboard event properties returns a Boolean value indicating whether a specific key was used in an event?

A) evt.key
B) evt.metaKey
C) evt.keyCode
D) evt.charCode
سؤال
Which of the following are the charCode values for the cursor control keys when the keydown and keyup events occur?

A) 16, 17, 18, 19
B) 65, 90, 97, 122
C) 0, 0, 0, 0
D) 16, 17, 18, 91
سؤال
Match between columns
This event handler is used when a user copies some content into an element.
onresize
This event handler is used when a user copies some content into an element.
oncut
This event handler is used when a user copies some content into an element.
onload
This event handler is used when a user copies some content into an element.
oncopy
This event handler is used when a user copies some content into an element.
onpaste
This event handler is used when a user copies some content into an element.
evt.detail
This event handler is used when a user copies some content into an element.
evt.clientX
This event handler is used when a user copies some content into an element.
evt.screenY
This event handler is used when a user copies some content into an element.
evt.button
This event handler is used when a user copies some content into an element.
evt.pageX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onresize
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
oncut
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onload
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
oncopy
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onpaste
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.detail
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.clientX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.screenY
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.button
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.pageX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onresize
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
oncut
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onload
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
oncopy
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onpaste
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.detail
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.clientX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.screenY
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.button
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.pageX
This event property returns the number of times the mouse button was clicked.
onresize
This event property returns the number of times the mouse button was clicked.
oncut
This event property returns the number of times the mouse button was clicked.
onload
This event property returns the number of times the mouse button was clicked.
oncopy
This event property returns the number of times the mouse button was clicked.
onpaste
This event property returns the number of times the mouse button was clicked.
evt.detail
This event property returns the number of times the mouse button was clicked.
evt.clientX
This event property returns the number of times the mouse button was clicked.
evt.screenY
This event property returns the number of times the mouse button was clicked.
evt.button
This event property returns the number of times the mouse button was clicked.
evt.pageX
This event handler is used when a user replicates the content of an element.
onresize
This event handler is used when a user replicates the content of an element.
oncut
This event handler is used when a user replicates the content of an element.
onload
This event handler is used when a user replicates the content of an element.
oncopy
This event handler is used when a user replicates the content of an element.
onpaste
This event handler is used when a user replicates the content of an element.
evt.detail
This event handler is used when a user replicates the content of an element.
evt.clientX
This event handler is used when a user replicates the content of an element.
evt.screenY
This event handler is used when a user replicates the content of an element.
evt.button
This event handler is used when a user replicates the content of an element.
evt.pageX
This event handler is used when a browser window is rescaled.
onresize
This event handler is used when a browser window is rescaled.
oncut
This event handler is used when a browser window is rescaled.
onload
This event handler is used when a browser window is rescaled.
oncopy
This event handler is used when a browser window is rescaled.
onpaste
This event handler is used when a browser window is rescaled.
evt.detail
This event handler is used when a browser window is rescaled.
evt.clientX
This event handler is used when a browser window is rescaled.
evt.screenY
This event handler is used when a browser window is rescaled.
evt.button
This event handler is used when a browser window is rescaled.
evt.pageX
This event handler is used when a user downsizes the content of an element.
onresize
This event handler is used when a user downsizes the content of an element.
oncut
This event handler is used when a user downsizes the content of an element.
onload
This event handler is used when a user downsizes the content of an element.
oncopy
This event handler is used when a user downsizes the content of an element.
onpaste
This event handler is used when a user downsizes the content of an element.
evt.detail
This event handler is used when a user downsizes the content of an element.
evt.clientX
This event handler is used when a user downsizes the content of an element.
evt.screenY
This event handler is used when a user downsizes the content of an element.
evt.button
This event handler is used when a user downsizes the content of an element.
evt.pageX
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onresize
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
oncut
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onload
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
oncopy
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onpaste
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.detail
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.clientX
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.screenY
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.button
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.pageX
This event handler is used after a page on the browser has been stacked.
onresize
This event handler is used after a page on the browser has been stacked.
oncut
This event handler is used after a page on the browser has been stacked.
onload
This event handler is used after a page on the browser has been stacked.
oncopy
This event handler is used after a page on the browser has been stacked.
onpaste
This event handler is used after a page on the browser has been stacked.
evt.detail
This event handler is used after a page on the browser has been stacked.
evt.clientX
This event handler is used after a page on the browser has been stacked.
evt.screenY
This event handler is used after a page on the browser has been stacked.
evt.button
This event handler is used after a page on the browser has been stacked.
evt.pageX
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onresize
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
oncut
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onload
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
oncopy
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onpaste
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.detail
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.clientX
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.screenY
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.button
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.pageX
سؤال
Match between columns
This event handler is used when a user downsizes the content of an element.
onresize
This event handler is used when a user downsizes the content of an element.
oncut
This event handler is used when a user downsizes the content of an element.
onload
This event handler is used when a user downsizes the content of an element.
oncopy
This event handler is used when a user downsizes the content of an element.
onpaste
This event handler is used when a user downsizes the content of an element.
evt.detail
This event handler is used when a user downsizes the content of an element.
evt.clientX
This event handler is used when a user downsizes the content of an element.
evt.screenY
This event handler is used when a user downsizes the content of an element.
evt.button
This event handler is used when a user downsizes the content of an element.
evt.pageX
This event handler is used when a user copies some content into an element.
onresize
This event handler is used when a user copies some content into an element.
oncut
This event handler is used when a user copies some content into an element.
onload
This event handler is used when a user copies some content into an element.
oncopy
This event handler is used when a user copies some content into an element.
onpaste
This event handler is used when a user copies some content into an element.
evt.detail
This event handler is used when a user copies some content into an element.
evt.clientX
This event handler is used when a user copies some content into an element.
evt.screenY
This event handler is used when a user copies some content into an element.
evt.button
This event handler is used when a user copies some content into an element.
evt.pageX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onresize
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
oncut
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onload
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
oncopy
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onpaste
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.detail
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.clientX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.screenY
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.button
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.pageX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onresize
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
oncut
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onload
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
oncopy
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onpaste
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.detail
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.clientX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.screenY
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.button
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.pageX
This event handler is used when a user replicates the content of an element.
onresize
This event handler is used when a user replicates the content of an element.
oncut
This event handler is used when a user replicates the content of an element.
onload
This event handler is used when a user replicates the content of an element.
oncopy
This event handler is used when a user replicates the content of an element.
onpaste
This event handler is used when a user replicates the content of an element.
evt.detail
This event handler is used when a user replicates the content of an element.
evt.clientX
This event handler is used when a user replicates the content of an element.
evt.screenY
This event handler is used when a user replicates the content of an element.
evt.button
This event handler is used when a user replicates the content of an element.
evt.pageX
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onresize
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
oncut
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onload
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
oncopy
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onpaste
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.detail
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.clientX
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.screenY
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.button
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.pageX
This event property returns the number of times the mouse button was clicked.
onresize
This event property returns the number of times the mouse button was clicked.
oncut
This event property returns the number of times the mouse button was clicked.
onload
This event property returns the number of times the mouse button was clicked.
oncopy
This event property returns the number of times the mouse button was clicked.
onpaste
This event property returns the number of times the mouse button was clicked.
evt.detail
This event property returns the number of times the mouse button was clicked.
evt.clientX
This event property returns the number of times the mouse button was clicked.
evt.screenY
This event property returns the number of times the mouse button was clicked.
evt.button
This event property returns the number of times the mouse button was clicked.
evt.pageX
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onresize
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
oncut
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onload
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
oncopy
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onpaste
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.detail
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.clientX
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.screenY
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.button
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.pageX
This event handler is used when a browser window is rescaled.
onresize
This event handler is used when a browser window is rescaled.
oncut
This event handler is used when a browser window is rescaled.
onload
This event handler is used when a browser window is rescaled.
oncopy
This event handler is used when a browser window is rescaled.
onpaste
This event handler is used when a browser window is rescaled.
evt.detail
This event handler is used when a browser window is rescaled.
evt.clientX
This event handler is used when a browser window is rescaled.
evt.screenY
This event handler is used when a browser window is rescaled.
evt.button
This event handler is used when a browser window is rescaled.
evt.pageX
This event handler is used after a page on the browser has been stacked.
onresize
This event handler is used after a page on the browser has been stacked.
oncut
This event handler is used after a page on the browser has been stacked.
onload
This event handler is used after a page on the browser has been stacked.
oncopy
This event handler is used after a page on the browser has been stacked.
onpaste
This event handler is used after a page on the browser has been stacked.
evt.detail
This event handler is used after a page on the browser has been stacked.
evt.clientX
This event handler is used after a page on the browser has been stacked.
evt.screenY
This event handler is used after a page on the browser has been stacked.
evt.button
This event handler is used after a page on the browser has been stacked.
evt.pageX
سؤال
Match between columns
الفرضيات:
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
الردود:
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
سؤال
Identify the syntax that allows the click point of the cursor to change the color of the cursor image with the coordintaes of the centre of the image being 12, 6 respectively.

A) cursor:url(image.p ng) 12 6, pointer;
B) cursor:url(image.p ng)(12:6);
C) cursor(image.p ng).pointer 12, 6;
D) cursor (image.pn g)(url,12,6);
سؤال
Case-Based Critical Thinking Questions Case 11-3 Robin has developed a typing tutorial using JavaScript that contains instructions and interactive activities and games. A user is required to press certain keys. The instructions appear on the screen when the user is using the tutorial. The user is instructed to press the Windows key on the PC keyboard every five seconds to complete a game. Which of the following keyboard event properties identifies if the key has been pressed or not?

A) evt.ctrlKkey
B) evt.metaKey
C) evt.detail
D) evt.which
سؤال
Discuss the challenges and features of anonymous functions.
سؤال
Why are functions treated differently in JavaScript? List some unique things that are possible with functions in JavaScript.
سؤال
Case-Based Critical Thinking Questions Case 11-5 Ashton has created a website for his company using JavaScript. He wants to add dialog boxes to the website to display messages and allow the user to input text. Ashton wants to create a dialog box for his website that asks the user to select OK or Cancel when he or she decides to leave the website. Which of the following commands should Ashton use to do this?

A) alert(text)
B) prompt( text [, defaultInput ])
C) confirm(text)
D) print(text)
سؤال
Explain function declaration in JavaScript. How is the method of function declaration in JavaScript more flexible?
سؤال
Case-Based Critical Thinking Questions Case 11-3 Robin has developed a typing tutorial using JavaScript that contains instructions and interactive activities and games. A user is required to press certain keys. The instructions appear on the screen when the user is using the tutorial. The user is instructed to type a specific key on the left side of the keyboard when using the tutorial. Which of the following keyboard event properties identifies if the user has pressed the specified key?

A) evt.key
B) evt.which
C) evt.detail
D) evt.location
سؤال
Which of the following mouse event object properties matches the mouse key that is clicked by the player during the game?

A) evt.detail
B) evt.button
C) evt.which
D) evt.relatedTarget
سؤال
Case-Based Critical Thinking Questions Case 11-2 Matt has developed a game using JavaScript that involves clicking of different mouse buttons continuously for a minute. The game provides instructions on which mouse button must be clicked and the number of times a button must be clicked to play the game. Which of the following mouse event object properties counts the number of times the player clicks the mouse button during the game?

A) evt.detail
B) evt.which
C) evt.relatedTarget
D) evt.button
سؤال
Case-Based Critical Thinking Questions Case 11-4 Mathew has created a website using JavaScript. He wants to add a feature which allows a user to change the color of the cursor image with a single click on it. He uses the click point for the cursor to accomplish this. What will be the default location of the click point of the cursor if no coordinates have been assigned to it?

A) (x, 0)
B) (0, 0)
C) (0, y)
D) (x, y)
سؤال
Case-Based Critical Thinking Questions Case 11-1 Mark has created a multimedia website about tourism that contains multiple images and videos of different tourist destinations. He wants to make certain changes to the website. These changes can be performed within the browser with the help of event handlers. Mark wants to upload a video of a tourist destination onto the website but is unable to do so. Which of the following event handlers should Mark apply to handle the corresponding event in the browser?

A) onbeforeunload
B) onunload
C) oncut
D) onerror
سؤال
Case-Based Critical Thinking Questions Case 11-1 Mark has created a multimedia website about tourism that contains multiple images and videos of different tourist destinations. He wants to make certain changes to the website. These changes can be performed within the browser with the help of event handlers. Mark wants to add content to the website that he is creating by copying it from another web page. Which of the following event handlers must Mark use to administer the event in the browser window of the website?

A) oncopy
B) onpaste
C) oncut
D) onunload
سؤال
Which of the following commands should be used by Ashton to allow a visitor to add their personal details using a dialog box on the website?

A) alert(text[,defaultInput])
B) prompt(text[,defaultInput])
C) confirm ( text [, defaultInput ])
D) print(text[,defaultInput])
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/76
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 11: Working With Events and Styles Tutorial
1
The event property evt.key returns the text of the key used in the event.
True
2
During a mouse action, events cannot be fired more than once.
False
3
A limitation of an event handler is that only one function can be applied to it at a time.
False
4
All JavaScript properties must begin with an uppercase letter.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
5
The onclick event handler recognizes the propagation of events through the capture and bubbling phases.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
6
The mouseout event indicates the movement of a mouse pointer onto an element.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
7
The keypress event is fired in response to the computer generating a character.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
8
The dblclick event indicates that the mouse button has been double-clicked.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
9
When a user copies the content of an element in a browser window, the oncut event handler is used.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
10
The commands that a browser runs in response to an event is a script .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
11
A generic cursor should be listed first and custom cursors should be listed last so that a browser can display something if it is unable to support a custom cursor image.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
12
Good coding practice dictates that global variables must be used as much as possible in a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
13
The event model describes how events and objects interact within a web page and a web browser.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
14
The evt.pageY property returns the vertical coordinate (in pixels) of the mouse pointer relative to the document.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
15
The evt.target returns the object in which the event was initiated.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
16
Function operators are more flexible than function declarations, allowing a function to be placed anywhere a variable can be placed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
17
Named functions are more concise and easier to manage than anonymous functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
18
The evt.eventPhase returns the object that is currently experiencing the event.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
19
The event object contains properties and methods associated with an event.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
20
JavaScript does not support hyphens in property names.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
21
The _____ is a mouse event object property that references the secondary object, where for the mouseover event, it i s the element that the pointer is leaving and for the mouseout event it is the element that the pointer is entering.

A) evt.which
B) evt.detail
C) evt.relatedTarget
D) evt.button
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
22
The _____ object property references the browser window in which the event has occurred.

A) evt.target
B) evt.view
C) evt.currentTarget
D) evt.eventphase
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
23
The _____ event handler is applied to a page when it is about to be unloaded by the browser.

A) onunload
B) onload
C) onbeforeunload
D) onbeforeload
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which of the following provides the correct syntax for adding an event handler to a page element as an HTML attribute?

A) < element onevent = "script">
B) element = "script">
C) element = "onevent">
D) element script = "onevent";>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
25
Which of the following statements is true about the evt.screenX mouse event?

A) It returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
B) It returns the horizontal coordinate (in pixels) of the mouse pointer relative to the physical screen.
C) It returns the horizontal coordinate (in pixels) of the secondary target of the event.
D) It returns the horizontal coordinate (in pixels) of the last mouse click relative to the screen
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
26
In the evt.eventPhase property, identify the phase of the event propagation the object is currently at when its value is 2.

A) NONE
B) CAPTURING_PHASE
C) AT_TARGET
D) BUBBLING_PHASE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
27
The _____ event property returns a Boolean value that indicates whether the browser depends upon the event.

A) evt.type
B) evt.target
C) evt.isTrusted
D) evt.eventPhase
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
28
In the _____ phase, the event moves down the object hierarchy, starting from the root element and moving inward until it reaches the object that initiated the event.

A) capture
B) target
C) bubbling
D) analyse
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
29
Identify the mouse event property that returns an integer indicating the mouse button that was pressed, where 0 = none, 1 = left, 2 = wheel or middle, and 3 = right.

A) evt.which
B) evt.button
C) evt.buttons
D) evt.detail
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
30
Which of the following mouse event properties returns the vertical coordinate (in pixels) of the mouse pointer relative to the browser window?

A) evt.clientY
B) evt.pageY
C) evt.screeenY
D) evt.whichY
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
31
Which of the following is the correct syntax for a command in JavaScript to apply inline styles using the following style attribute? …

A) object.style = property:value
B) object.property = style.value
C) object .style. property = " value ";
D) object:style:property = "value";
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
32
Which of following codes of an event handler records the exact window position of the mouse pointer as it maneuvers across an element?

A) document.getElementById("element1").onmouseenter = trackPointer; function trackPointer(e) { var hPos = e.clientX; document.getElementById("element2").innerText;
B) document.getElementById("element1").onmouseclick = trackPointer; function trackPointer(e) { var vPos = e.clientY; document.getElementById("element2").innerText = " (" + hPos + ", " + vPos + ")"; }
C) document.getElementById("element1").onmousemove = trackPointer; function trackPointer(e) { var hPos = e.clientX; var vPos = e.clientY; document.getElementById("element2").innerText = " (" + hPos + ", " + vPos + ")"; }
D) document.getElementById("element1").onmouseup = trackPointer; function trackPointer(e) { var hPos = e.clientX; document.getElementById("element2").innerText = " (" + hPos + ", " + vPos + ")"; }
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
33
Which of the following event properties or methods returns a Boolean value that indicates whether an event can have its default action terminated?

A) evt .stopImmediatePropagation()
B) evt.stopPropogation()
C) evt.cancelable
D) evt.defaultPrevented
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
34
Identify a true statement about the evt.eventPhase property.

A) It returns the object currently experiencing the event.
B) It returns a Boolean value indicating whether the event is trusted by the browser.
C) It returns the type of event.
D) It returns the stage of the event propagation the event object is currently at.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
35
Which of the following JavaScript methods is used to define an object collection based on a CSS (Cascading Style Sheets) selector?

A) document.querySelectorAll( selector )
B) document.getElementbyId(selector)
C) object .style. property = " value(selector) "
D) object.property = "value(selector)"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
36
Identify the event handler that does not recognize the propagation of the events through capture and bubbling phases.

A) onmouseout
B) onmouseleave
C) onmouseenter
D) onmousedown
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
37
Which of the following JavaScript expressions is equivalent to the given HTML code?

A) document.getElementById("menu1").className = "menu";
B) document.getElementById("menu1")."menu";
C) Document.getelementbyId(menu1= "class name".menu);
D) Document.getelementbyId("menu1").menu= "class";
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
38
Which of the following mouse buttons is pressed if the value of the evt.buttons property is 2?

A) the left mouse button
B) the right mouse button
C) the middle mouse button
D) the back mouse button
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
39
Which of the following event object methods prevents other event listeners of the event from being called?

A) evt .stopImmediatePropagation()
B) evt .stopPropagation()
C) evt .preventDefault()
D) evt .cancelable()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
40
The _____ element is continuously fired as the mouse pointer hovers across an element with each new position registering that event.

A) mousemove
B) mouseover
C) mouseout
D) mouseleave
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
41
Which of the following is the correct value of the charCode property for the keys "a, z" when the keyup and keydown events occur?

A) 65, 90
B) 97, 105
C) 49, 57
D) 0, 0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
42
Identify the syntax to remove an event listener.

A) object .removeEventListener( event , function [, capture = false]);
B) object .removeEventListener( event , function [, capture = true]);
C) object .removeEventListener( event , function [, bubbling = false]);
D) object .removeEventListener( event , function [,bubbling= false]);
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
43
Identify the sequence of the occurrence of events when a user types a keyboard key.

A) keyup,keypress,keydown
B) keydown,keypress,keyup
C) keyup,keydown,keypress
D) keydown,keyup,keypress
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
44
William wants to create a dialog box in his website to display the message "My name is William". Which of the following syntaxes must William use to display the message?

A) alert("My name is William")
B) confirm("My name is William")
C) prompt("My name is William")
D) print("My name is William")
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
45
Identify the keyCode values of the modifier keys when the keyup and keydown events occur.

A) 16, 17, 18, 91
B) 37, 38, 39, 40
C) 0, 0, 0, 0
D) 65, 90, 97, 122
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
46
Which of the following keyboard event properties returns the text of the key used in the event?

A) evt.altKey
B) evt.metaKey
C) evt.shiftKey
D) evt.key
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
47
The keyCode values for the keys "1, 9" on the numeric pad when the keypress event occurs is _____.

A) 49, 57
B) 97, 105
C) 65, 90
D) 97, 122
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
48
Identify the correct syntax to prevent a submit button from submitting a web form when clicked using the prevent default() method.

A) document.querySelector("input[type='submit']").onclick = runForm; function runForm(e) { function commands e.preventDefault(); }
B) document.querySelector("input[type='submit']").onclick = runForm;
C) document.querySelector("input[type='submit']").onclick = runForm; function runForm(e) { e.preventDefault(); }
D) document.querySelector("input[type='submit']").onclick = runForm; function runForm(e) { }
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
49
Identify the syntax to add an event listener to an object.

A) object .addEventListener( event , function [, capture = true]);
B) object .addEventListener( event , function [, capture = false]);
C) object .addEventListener( event , function [, target = false]);
D) object .addEventListener( event , function [, target = true]);
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
50
Which of the following is the correct location of a key on a keyboard if the value of the keyboard property evt.location is 3?

A) The key is located in the standard position.
B) The key is located on the keyboard's left edge.
C) The key is located on the keyboard's right edge.
D) The key is located on the numeric pad.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
51
Which of the following is the syntax to define a cursor in JavaScript?

A) object.cursorTypes = cursor.style;
B) object.style = cursorTypes;
C) object.style.cursor = cursorTypes;
D) object.style.cursorTypes = cursor;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
52
Which of the following browsers supports cursors only in CUR and ANI formats?

A) Microsoft Edge
B) Google Chrome
C) Mozilla Firefox
D) Opera Mini
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
53
Identify a true statement about a function in JavaScript.

A) A function can be stored as a variable.
B) An object is passed through a function using the pass by value method.
C) A special function exists for multithreading in JavaScript.
D) An object is passed through a function using pass by reference method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
54
Which of the following syntaxes displays a dialog box, causing the user to enter input text?

A) alert(text[,defaultInput])
B) confirm(text[,defaultInput])
C) prompt( text [, defaultInput ])
D) print(text[,defaultInput])
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
55
John has created an object called Pines. He wants to change the cursor type to the pointer cursor. Which of the following syntaxes must John use to accomplish this?

A) document.getElementById("Pines").style.cursor = "pointer";
B) document.queryselector("Pines").cursor.style = "pointer";
C) document.queryselector("Pines").style = "pointer";
D) document.getElementById ("Pines").cursor = "pointer";
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
56
Identify the correct charCode values for the keys "1, 9" on the top row of the keyboard when the keyup and keydown events occur.

A) 0, 0
B) 49, 57
C) 65, 90
D) 97, 122
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
57
Which of the following is a true statement about an event listener?

A) It describes how events and objects interact within a web page and a web browser.
B) It allows a function to override another when multiple functions are added.
C) It permits only one function to be applied to an event listener at a time.
D) It responds to events during the target phase but does not recognize the propagation of events through the capture and bubbling phases.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
58
Identify a true statement about the evt.charCode keyboard event property.

A) It returns the text of the key used in the event.
B) It returns a Unicode character indicating whether the Alt key was used in the event object
C) It returns a Boolean value indicating whether the meta key was used in the event
D) It returns the Unicode character code of the key used in the keypress event.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
59
Which of the following keyboard event properties returns a Boolean value indicating whether a specific key was used in an event?

A) evt.key
B) evt.metaKey
C) evt.keyCode
D) evt.charCode
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
60
Which of the following are the charCode values for the cursor control keys when the keydown and keyup events occur?

A) 16, 17, 18, 19
B) 65, 90, 97, 122
C) 0, 0, 0, 0
D) 16, 17, 18, 91
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
61
Match between columns
This event handler is used when a user copies some content into an element.
onresize
This event handler is used when a user copies some content into an element.
oncut
This event handler is used when a user copies some content into an element.
onload
This event handler is used when a user copies some content into an element.
oncopy
This event handler is used when a user copies some content into an element.
onpaste
This event handler is used when a user copies some content into an element.
evt.detail
This event handler is used when a user copies some content into an element.
evt.clientX
This event handler is used when a user copies some content into an element.
evt.screenY
This event handler is used when a user copies some content into an element.
evt.button
This event handler is used when a user copies some content into an element.
evt.pageX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onresize
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
oncut
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onload
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
oncopy
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onpaste
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.detail
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.clientX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.screenY
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.button
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.pageX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onresize
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
oncut
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onload
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
oncopy
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onpaste
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.detail
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.clientX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.screenY
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.button
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.pageX
This event property returns the number of times the mouse button was clicked.
onresize
This event property returns the number of times the mouse button was clicked.
oncut
This event property returns the number of times the mouse button was clicked.
onload
This event property returns the number of times the mouse button was clicked.
oncopy
This event property returns the number of times the mouse button was clicked.
onpaste
This event property returns the number of times the mouse button was clicked.
evt.detail
This event property returns the number of times the mouse button was clicked.
evt.clientX
This event property returns the number of times the mouse button was clicked.
evt.screenY
This event property returns the number of times the mouse button was clicked.
evt.button
This event property returns the number of times the mouse button was clicked.
evt.pageX
This event handler is used when a user replicates the content of an element.
onresize
This event handler is used when a user replicates the content of an element.
oncut
This event handler is used when a user replicates the content of an element.
onload
This event handler is used when a user replicates the content of an element.
oncopy
This event handler is used when a user replicates the content of an element.
onpaste
This event handler is used when a user replicates the content of an element.
evt.detail
This event handler is used when a user replicates the content of an element.
evt.clientX
This event handler is used when a user replicates the content of an element.
evt.screenY
This event handler is used when a user replicates the content of an element.
evt.button
This event handler is used when a user replicates the content of an element.
evt.pageX
This event handler is used when a browser window is rescaled.
onresize
This event handler is used when a browser window is rescaled.
oncut
This event handler is used when a browser window is rescaled.
onload
This event handler is used when a browser window is rescaled.
oncopy
This event handler is used when a browser window is rescaled.
onpaste
This event handler is used when a browser window is rescaled.
evt.detail
This event handler is used when a browser window is rescaled.
evt.clientX
This event handler is used when a browser window is rescaled.
evt.screenY
This event handler is used when a browser window is rescaled.
evt.button
This event handler is used when a browser window is rescaled.
evt.pageX
This event handler is used when a user downsizes the content of an element.
onresize
This event handler is used when a user downsizes the content of an element.
oncut
This event handler is used when a user downsizes the content of an element.
onload
This event handler is used when a user downsizes the content of an element.
oncopy
This event handler is used when a user downsizes the content of an element.
onpaste
This event handler is used when a user downsizes the content of an element.
evt.detail
This event handler is used when a user downsizes the content of an element.
evt.clientX
This event handler is used when a user downsizes the content of an element.
evt.screenY
This event handler is used when a user downsizes the content of an element.
evt.button
This event handler is used when a user downsizes the content of an element.
evt.pageX
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onresize
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
oncut
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onload
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
oncopy
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onpaste
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.detail
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.clientX
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.screenY
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.button
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.pageX
This event handler is used after a page on the browser has been stacked.
onresize
This event handler is used after a page on the browser has been stacked.
oncut
This event handler is used after a page on the browser has been stacked.
onload
This event handler is used after a page on the browser has been stacked.
oncopy
This event handler is used after a page on the browser has been stacked.
onpaste
This event handler is used after a page on the browser has been stacked.
evt.detail
This event handler is used after a page on the browser has been stacked.
evt.clientX
This event handler is used after a page on the browser has been stacked.
evt.screenY
This event handler is used after a page on the browser has been stacked.
evt.button
This event handler is used after a page on the browser has been stacked.
evt.pageX
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onresize
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
oncut
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onload
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
oncopy
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onpaste
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.detail
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.clientX
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.screenY
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.button
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.pageX
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
62
Match between columns
This event handler is used when a user downsizes the content of an element.
onresize
This event handler is used when a user downsizes the content of an element.
oncut
This event handler is used when a user downsizes the content of an element.
onload
This event handler is used when a user downsizes the content of an element.
oncopy
This event handler is used when a user downsizes the content of an element.
onpaste
This event handler is used when a user downsizes the content of an element.
evt.detail
This event handler is used when a user downsizes the content of an element.
evt.clientX
This event handler is used when a user downsizes the content of an element.
evt.screenY
This event handler is used when a user downsizes the content of an element.
evt.button
This event handler is used when a user downsizes the content of an element.
evt.pageX
This event handler is used when a user copies some content into an element.
onresize
This event handler is used when a user copies some content into an element.
oncut
This event handler is used when a user copies some content into an element.
onload
This event handler is used when a user copies some content into an element.
oncopy
This event handler is used when a user copies some content into an element.
onpaste
This event handler is used when a user copies some content into an element.
evt.detail
This event handler is used when a user copies some content into an element.
evt.clientX
This event handler is used when a user copies some content into an element.
evt.screenY
This event handler is used when a user copies some content into an element.
evt.button
This event handler is used when a user copies some content into an element.
evt.pageX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onresize
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
oncut
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onload
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
oncopy
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
onpaste
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.detail
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.clientX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.screenY
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.button
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
evt.pageX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onresize
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
oncut
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onload
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
oncopy
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
onpaste
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.detail
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.clientX
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.screenY
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.button
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
evt.pageX
This event handler is used when a user replicates the content of an element.
onresize
This event handler is used when a user replicates the content of an element.
oncut
This event handler is used when a user replicates the content of an element.
onload
This event handler is used when a user replicates the content of an element.
oncopy
This event handler is used when a user replicates the content of an element.
onpaste
This event handler is used when a user replicates the content of an element.
evt.detail
This event handler is used when a user replicates the content of an element.
evt.clientX
This event handler is used when a user replicates the content of an element.
evt.screenY
This event handler is used when a user replicates the content of an element.
evt.button
This event handler is used when a user replicates the content of an element.
evt.pageX
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onresize
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
oncut
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onload
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
oncopy
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
onpaste
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.detail
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.clientX
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.screenY
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.button
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
evt.pageX
This event property returns the number of times the mouse button was clicked.
onresize
This event property returns the number of times the mouse button was clicked.
oncut
This event property returns the number of times the mouse button was clicked.
onload
This event property returns the number of times the mouse button was clicked.
oncopy
This event property returns the number of times the mouse button was clicked.
onpaste
This event property returns the number of times the mouse button was clicked.
evt.detail
This event property returns the number of times the mouse button was clicked.
evt.clientX
This event property returns the number of times the mouse button was clicked.
evt.screenY
This event property returns the number of times the mouse button was clicked.
evt.button
This event property returns the number of times the mouse button was clicked.
evt.pageX
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onresize
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
oncut
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onload
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
oncopy
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
onpaste
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.detail
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.clientX
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.screenY
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.button
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
evt.pageX
This event handler is used when a browser window is rescaled.
onresize
This event handler is used when a browser window is rescaled.
oncut
This event handler is used when a browser window is rescaled.
onload
This event handler is used when a browser window is rescaled.
oncopy
This event handler is used when a browser window is rescaled.
onpaste
This event handler is used when a browser window is rescaled.
evt.detail
This event handler is used when a browser window is rescaled.
evt.clientX
This event handler is used when a browser window is rescaled.
evt.screenY
This event handler is used when a browser window is rescaled.
evt.button
This event handler is used when a browser window is rescaled.
evt.pageX
This event handler is used after a page on the browser has been stacked.
onresize
This event handler is used after a page on the browser has been stacked.
oncut
This event handler is used after a page on the browser has been stacked.
onload
This event handler is used after a page on the browser has been stacked.
oncopy
This event handler is used after a page on the browser has been stacked.
onpaste
This event handler is used after a page on the browser has been stacked.
evt.detail
This event handler is used after a page on the browser has been stacked.
evt.clientX
This event handler is used after a page on the browser has been stacked.
evt.screenY
This event handler is used after a page on the browser has been stacked.
evt.button
This event handler is used after a page on the browser has been stacked.
evt.pageX
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
63
Match between columns
الفرضيات:
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the document.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the vertical coordinate (in pixels) of the mouse pointer relative to the monitor.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns the number of times the mouse button was clicked.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event property returns a number indicating the mouse button that was pressed, where 0 = left, 1 = wheel or middle, and 3 = right and evt is event object for the mouse event.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a browser window is rescaled.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user copies some content into an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user downsizes the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used when a user replicates the content of an element.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event handler is used after a page on the browser has been stacked.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
This event property returns the horizontal coordinate (in pixels) of the mouse pointer relative to the browser window.
الردود:
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
onresize
oncut
onload
oncopy
onpaste
evt.detail
evt.clientX
evt.screenY
evt.button
evt.pageX
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
64
Identify the syntax that allows the click point of the cursor to change the color of the cursor image with the coordintaes of the centre of the image being 12, 6 respectively.

A) cursor:url(image.p ng) 12 6, pointer;
B) cursor:url(image.p ng)(12:6);
C) cursor(image.p ng).pointer 12, 6;
D) cursor (image.pn g)(url,12,6);
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
65
Case-Based Critical Thinking Questions Case 11-3 Robin has developed a typing tutorial using JavaScript that contains instructions and interactive activities and games. A user is required to press certain keys. The instructions appear on the screen when the user is using the tutorial. The user is instructed to press the Windows key on the PC keyboard every five seconds to complete a game. Which of the following keyboard event properties identifies if the key has been pressed or not?

A) evt.ctrlKkey
B) evt.metaKey
C) evt.detail
D) evt.which
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
66
Discuss the challenges and features of anonymous functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
67
Why are functions treated differently in JavaScript? List some unique things that are possible with functions in JavaScript.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
68
Case-Based Critical Thinking Questions Case 11-5 Ashton has created a website for his company using JavaScript. He wants to add dialog boxes to the website to display messages and allow the user to input text. Ashton wants to create a dialog box for his website that asks the user to select OK or Cancel when he or she decides to leave the website. Which of the following commands should Ashton use to do this?

A) alert(text)
B) prompt( text [, defaultInput ])
C) confirm(text)
D) print(text)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
69
Explain function declaration in JavaScript. How is the method of function declaration in JavaScript more flexible?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
70
Case-Based Critical Thinking Questions Case 11-3 Robin has developed a typing tutorial using JavaScript that contains instructions and interactive activities and games. A user is required to press certain keys. The instructions appear on the screen when the user is using the tutorial. The user is instructed to type a specific key on the left side of the keyboard when using the tutorial. Which of the following keyboard event properties identifies if the user has pressed the specified key?

A) evt.key
B) evt.which
C) evt.detail
D) evt.location
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
71
Which of the following mouse event object properties matches the mouse key that is clicked by the player during the game?

A) evt.detail
B) evt.button
C) evt.which
D) evt.relatedTarget
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
72
Case-Based Critical Thinking Questions Case 11-2 Matt has developed a game using JavaScript that involves clicking of different mouse buttons continuously for a minute. The game provides instructions on which mouse button must be clicked and the number of times a button must be clicked to play the game. Which of the following mouse event object properties counts the number of times the player clicks the mouse button during the game?

A) evt.detail
B) evt.which
C) evt.relatedTarget
D) evt.button
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
73
Case-Based Critical Thinking Questions Case 11-4 Mathew has created a website using JavaScript. He wants to add a feature which allows a user to change the color of the cursor image with a single click on it. He uses the click point for the cursor to accomplish this. What will be the default location of the click point of the cursor if no coordinates have been assigned to it?

A) (x, 0)
B) (0, 0)
C) (0, y)
D) (x, y)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
74
Case-Based Critical Thinking Questions Case 11-1 Mark has created a multimedia website about tourism that contains multiple images and videos of different tourist destinations. He wants to make certain changes to the website. These changes can be performed within the browser with the help of event handlers. Mark wants to upload a video of a tourist destination onto the website but is unable to do so. Which of the following event handlers should Mark apply to handle the corresponding event in the browser?

A) onbeforeunload
B) onunload
C) oncut
D) onerror
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
75
Case-Based Critical Thinking Questions Case 11-1 Mark has created a multimedia website about tourism that contains multiple images and videos of different tourist destinations. He wants to make certain changes to the website. These changes can be performed within the browser with the help of event handlers. Mark wants to add content to the website that he is creating by copying it from another web page. Which of the following event handlers must Mark use to administer the event in the browser window of the website?

A) oncopy
B) onpaste
C) oncut
D) onunload
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
76
Which of the following commands should be used by Ashton to allow a visitor to add their personal details using a dialog box on the website?

A) alert(text[,defaultInput])
B) prompt(text[,defaultInput])
C) confirm ( text [, defaultInput ])
D) print(text[,defaultInput])
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.