Search completed in 0.98 seconds.
15 results for "oncontextmenu":
GlobalEventHandlers.oncontextmenu - Web APIs
Web › API › GlobalEventHandlers › oncontextmenu
you may prefer to use the eventtarget.addeventlistener() method instead, since it's more flexible. examples disabling context menus this snippet prevents context menus from opening in the window. the context menu typically appears upon a right click. ...
...you may prefer to use the eventtarget.addeventlistener() method instead, since it's more flexible. examples disabling context menus this snippet prevents context menus from opening in the window. the context menu typically appears upon a right click. ...
...thandler that processes contextmenu events. the contextmenu event typically fires when the right mouse button is clicked on the window. unless the default behavior is prevented, the browser context menu will activate. syntax target.oncontextmenu = functionref; value functionref is a function name or a function expression. the function receives an event object as its sole argument. only one oncontextmenu handler can be assigned to an object at a time. you may prefer to use the eventtarget.addeventlistener() method instead, since it's more flexible. ...
...And 3 more matches
XUL accessibility guidelines - Archive of obsolete content
Archive › Mozilla › XUL › XUL accessibility guidelines
mozilla keyboard shortcuts. a full list of keyboard shortcuts for the various mozilla applications. mozilla's accesskey faq. a short reference for using the accesskey attribute. context menus the context menu is the small menu activated with a right mouse click on a content area or element (or with shift + f10 or vk_apps on windows and ctrl + click or ctrl + space on a mac). use the oncontextmenu event handler or the context attribute to create context menus. do not specifically code them to open on a click of the right mouse button. the oncontextmenu event and context attribute work with the correct platform-specific context menu triggers, including the keyboard button and appropriate mouse clicks. mouse dependent scripting functionality associated with mouse events such as onmouseover...
... for column picker and other features. toolbarbuttons keyboard alternatives are provided for toolbarbutton functionality. keyboard alternatives are not provided for toolbarbutton functionality. keyboard shortcuts keyboard shortcuts are present for important functionality keyboard shortcuts are not provided. context menus context menus are triggered by the oncontextmenu event handler. context menus are hard coded to a right mouse click or other specific trigger. mouse dependent scripting all mouse operations have keyboard accessible equivalents. operations exist that can only be performed with a mouse. scrolling all scrollable elements are controllable with the keyboard. scrolling cannot be performed with a keyboard. foc...
XRReferenceSpace.getOffsetReferenceSpace() - Web APIs
Web › API › XRReferenceSpace › getOffsetReferenceSpace
o read the inputs and move perform the movements. this is another good use case for getoffsetreferencespace(). in this example, we'll show code that lets the user look around by right-clicking and moving the mouse to change the viewing angle. first, we add an event handler for mousemove events, which calls our code to perform the rotation if the right mouse button is down. ...
...by right-clicking and moving the mouse to change the viewing angle. first, we add an event handler for mousemove events, which calls our code to perform the rotation if the right mouse button is down. note also that we set oncontextmenu up to be ignored by calling preventdefault() on those events. this prevents the right-clicks from causing the context menu from appearing in the browser. canvas.oncontextmenu = (event) => { event.preventdefault(); }; canvas.addeventlistener("mousemove", (event) => { if (event.buttons & 2) { rotateviewby(event.movementx, event.movementy); } }); next, the rotateviewby() function, which updates the mouse look direction's yaw and pitch based on the mouse delta values from the mousemove event. the pitch is restricted so that you can't look beyond straight up and ...
XUL Events - Archive of obsolete content
Archive › Mozilla › XUL › Events
an element when the user requests to open the context menu for the element. the action to do this varies by platform, but it will typically be a right click. this handler is usually used to dynamically set the commands on a menu when the user requests to display it, or you can use popupshowing event. returning false from this event handler prevents the popup from appearing. attribute: oncontextmenu drag the drag event is sent to the source node (the node that was dragged) several times a second while the drag is occurring. attribute: ondrag dragdrop this event is sent when the user releases the mouse button t...
ContextMenus - Archive of obsolete content
Archive › Mozilla › XUL › PopupGuide › ContextMenus
ext menu. when using the mouse to open a context menu, the context is the element that was clicked. when using the keyboard, the context is the element in the window that is currently focused. although there are several ways to open a context menu, a single event may be used to listen for any of these situations; the 'contextmenu' event is fired in any case. <hbox id="container" align="center" oncontextmenu="..."> <label value="name:"/> <textbox id="name"/> </hbox> in this example, an attempt to open a context menu anywhere inside the hbox will call the event listener attached using the oncontextmenu attribute. as textboxes have a context menu built in, the event will fire before an attempt to open the context menu. however, the event will also fire when the label is right-clicked for instance...
XUL Questions and Answers - Archive of obsolete content
Archive › Mozilla › XUL › XUL Questions and Answers
e is changed. for more information please look at the following link: nsextensionmanager.js is nsivariant fully supported using python? python has full support for variants. pass a python string/int/etc to the method requiring an nsivariant. a python object is convered when implmenting an interface taking an nsivariant. how do i close the "showpopup" which is automatically opened when the "oncontextmenu" event is called? if you have a similar code base as the following: onbookmarkcontextmenu: function(event, id) { document.getelementbyid("bookmarkpopup").showpopup(document.getelementbyid(id), event.screenx + 6, event.screeny + 6, "popup", "bottomright", "bottomright"); } use the hidepopup() function to solve this issue. what is an example of addprogresslistener? an example of this ...
Document - Web APIs
Web › API › Document
playthrough event is raised. globaleventhandlers.onchange is an eventhandler representing the code to be called when the change event is raised. globaleventhandlers.onclick is an eventhandler representing the code to be called when the click event is raised. globaleventhandlers.onclose is an eventhandler representing the code to be called when the close event is raised. globaleventhandlers.oncontextmenu is an eventhandler representing the code to be called when the contextmenu event is raised. globaleventhandlers.oncuechange is an eventhandler representing the code to be called when the cuechange event is raised. globaleventhandlers.ondblclick is an eventhandler representing the code to be called when the dblclick event is raised. globaleventhandlers.ondrag is an eventhandler representing...
Element: auxclick event - Web APIs
Web › API › Element › auxclick event
html <button><h1>click me!</h1></button> css html { height: 100%; overflow: hidden; } body { height:...
Element: contextmenu event - Web APIs
Web › API › Element › contextmenu event
, unless the element is a tree, in which case the context menu is displayed at the bottom left of the current row. any right-click event that is not disabled (by calling the event's preventdefault() method) will result in a contextmenu event being fired at the targeted element. bubbles yes cancelable yes interface mouseevent event handler property oncontextmenu examples in this example, the default action of the contextmenu event is canceled using preventdefault() when the contextmenu event is fired at the first paragraph. as a result, the first paragraph will do nothing when right-clicked, while the second paragraph will show the standard context menu offered by your browser. html <p id="nocontextmenu">the context menu has been disabled on th...
Element - Web APIs
Web › API › Element
on (e.g., any mouse button other than the left button) has been pressed and released on an element. also available via the onauxclick property. click fired when a pointing device button (e.g., a mouse's primary button) is pressed and released on a single element. also available via the onclick property. contextmenu fired when the user attempts to open a context menu. also available via the oncontextmenu property. dblclick fired when a pointing device button (e.g., a mouse's primary button) is clicked twice on a single element. also available via the ondblclick property. domactivate occurs when an element is activated, for instance, through a mouse click or a keypress. mousedown fired when a pointing device button is pressed on an element. also available via the onmousedown property. m...
GlobalEventHandlers - Web APIs
Web › API › GlobalEventHandlers
playthrough event is raised. globaleventhandlers.onchange is an eventhandler representing the code to be called when the change event is raised. globaleventhandlers.onclick is an eventhandler representing the code to be called when the click event is raised. globaleventhandlers.onclose is an eventhandler representing the code to be called when the close event is raised. globaleventhandlers.oncontextmenu is an eventhandler representing the code to be called when the contextmenu event is raised. globaleventhandlers.oncuechange is an eventhandler representing the code to be called when the cuechange event is raised. globaleventhandlers.ondblclick is an eventhandler representing the code to be called when the dblclick event is raised. globaleventhandlers.ondrag is an eventhandler representing...
Index - Web APIs
Web › API › Index
mixin is the eventhandler for processing click events on a given element. 1488 globaleventhandlers.onclose api, dialog, event handler, experimental, globaleventhandlers, html dom, needsexample, property, reference the onclose property of the globaleventhandlers mixin is an eventhandler for processing close events sent to a <dialog> element. 1489 globaleventhandlers.oncontextmenu api, event handler, globaleventhandlers, html dom, property, reference the oncontextmenu property of the globaleventhandlers mixin is an eventhandler that processes contextmenu events. 1490 globaleventhandlers.oncuechange api, event handler, globaleventhandlers, property, reference, texttrack, webvtt, text track, track, vtt the oncuechange property of the globaleven...
MouseEvent.button - Web APIs
Web › API › MouseEvent › button
buttons may be configured differently to the standard "left to right" layout. a mouse configured for left-handed use may have the button actions reversed. some pointing devices only have one button and use keyboard or other input mechanisms to indicate main, secondary, auxilary, etc. others may have many buttons mapped to different functions and button values. ...
Window - Web APIs
Web › API › Window
the window loses focus, such as due to a popup. globaleventhandlers.onchange an event handler property for change events on the window. globaleventhandlers.onclick called after the any mouse button is pressed & released globaleventhandlers.ondblclick called when a double click is made with any mouse button. globaleventhandlers.onclose called after the window is closed globaleventhandlers.oncontextmenu called when the right mouse button is pressed globaleventhandlers.onerror called when a resource fails to load or when an error occurs at runtime. see error event. globaleventhandlers.onfocus called after the window receives or regains focus. see focus events. windoweventhandlers.onhashchange an event handler property for hashchange events on the window; called when the part of the url aft...
Global attributes - HTML: Hypertext Markup Language
Web › HTML › Global attributes
tes, the following global attributes also exist: xml:lang and xml:base — these are inherited from the xhtml specifications and deprecated, but kept for compatibility purposes. the multiple aria-* attributes, used for improving accessibility. ...