file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
api/document/parsehtml_static/index.md
API - Document - parseHTML static - Description: The `parseHTML()` method parses and sanitize a string of HTML in order to create a new `Document` instance that is XSS-safe. The resulting `Document` will have a content type of "text/html", a character set of UTF-8, and a URL of "about:blank". If no sanitizer is speci...
[ 0.047689735889434814, -0.2967309355735779, 0.3245444595813751, 0.8681115508079529, 0.2607209384441376, -1.2553315162658691, 0.1563260853290558, 0.7385281920433044, 0.01676863431930542, 0.6627826690673828, -0.6583296060562134, 0.03235827386379242, 0.05664672702550888, -0.4515469968318939, ...
api/document/selectionchange_event/index.md
API - Document - selectionchange event: The browser fires the `selectionchange` event of the Selection API when the current `Selection` of a `Document` changes. A document selection represents either a range of selected content across DOM nodes or a collapsed caret position. This event is not cancelable and does not ...
[ -0.3640178442001343, -0.6798563599586487, -0.1911025196313858, 0.8087011575698853, 0.10556186735630035, -1.8283830881118774, -0.34341636300086975, 1.121541142463684, 0.4580085277557373, 0.48508599400520325, 0.10026922821998596, -0.4977453351020813, 0.09888605773448944, 0.08683730661869049,...
api/document/selectionchange_event/index.md
API - Document - selectionchange event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("selectionchange", (event) => {}) onselectionchange = (event) => {}
[ 0.2846490740776062, -0.5139376521110535, -0.09415467828512192, 0.5698283910751343, -0.29926255345344543, -1.8535854816436768, -0.2687198519706726, 1.3192349672317505, 0.1095864474773407, 0.3381677269935608, 0.18893858790397644, 0.5050630569458008, -0.5207411050796509, -0.21970249712467194,...
api/document/selectionchange_event/index.md
API - Document - selectionchange event - Event type: A generic `Event`.
[ -0.7019278407096863, -0.304879754781723, -0.07698839902877808, 0.11626049876213074, -0.2992169260978699, -0.9387627243995667, -0.3814378082752228, 0.456918865442276, 0.02773953229188919, 0.13884279131889343, 0.5190473198890686, 0.03336750715970993, 0.28622105717658997, 0.3747428357601166, ...
api/document/selectionchange_event/index.md
API - Document - selectionchange event - Description: The `Document` object `selectionchange` event is fired when: - A user or script creates or clears a selection. - The start or end boundary point of a selected range moves. - A selected range changes completely. - A selection collapses to a single caret position. ...
[ -0.21390730142593384, -0.20364217460155487, 0.13020747900009155, 0.5867374539375305, 0.6103094816207886, -1.7067543268203735, 0.5757119059562683, 1.2497403621673584, -0.5451792478561401, 0.5246627330780029, 0.12936843931674957, -0.16834482550621033, 0.04642385244369507, 0.03533709794282913...
api/document/selectionchange_event/index.md
API - Document - selectionchange event - Examples - Basic usage: Example: // addEventListener version document.addEventListener("selectionchange", () => { console.log(document.getSelection()); }); // onselectionchange version document.onselectionchange = () => { console.log(document.getSelection()); };
[ -0.005039665848016739, -0.44857513904571533, -1.1105916500091553, 0.550902783870697, -0.04956447333097458, -1.95392906665802, -0.16973716020584106, 0.15713396668434143, -0.3966412842273712, 0.08311755210161209, 0.19853457808494568, -0.1018875390291214, 0.057630203664302826, -0.488615453243...
api/document/createattributens/index.md
API - Document - createAttributeNS: The `createAttributeNS()` method of the `Document` interface creates a new attribute node with the specified namespace URI and qualified name. The object created is a node implementing the `Attr` interface. The DOM does not enforce what sort of attributes can be added to a particul...
[ 0.9285648465156555, -0.5427616834640503, -0.11837974190711975, 0.9090545177459717, -0.13483375310897827, -1.5126750469207764, 0.7929262518882751, 0.6667703986167908, 0.5430459976196289, 0.27604225277900696, -0.8263132572174072, -0.16766327619552612, 0.5094569325447083, -0.11312951147556305...
api/document/createattributens/index.md
API - Document - createAttributeNS - Syntax: Example: createAttributeNS(namespaceURI, qualifiedName)
[ 0.16181275248527527, -0.2038252353668213, 0.5024049878120422, 0.8320624232292175, -0.5602612495422363, -0.5028717517852783, 0.011398594826459885, 0.28589242696762085, 0.45035332441329956, -0.31590402126312256, -0.6208122372627258, 0.5111884474754333, -0.30233660340309143, 0.091977134346961...
api/document/createattributens/index.md
API - Document - createAttributeNS - Syntax - Parameters: - `namespaceURI`: A string that specifies the `namespaceURI` to associate with the attribute, or the empty string. In HTML documents, most attributes are in the null namespace — use the empty string for these. Use a specific namespace URI only when creating a n...
[ 0.36935925483703613, -0.35198354721069336, -0.32609671354293823, 0.7680598497390747, 0.5061832666397095, -2.09439754486084, 1.4571832418441772, 0.24497750401496887, 0.7275426387786865, 0.2779301106929779, -0.5746053457260132, 0.27751195430755615, -0.315109521150589, 0.12935060262680054, ...
api/document/createattributens/index.md
API - Document - createAttributeNS - Syntax - Return value: The new `Attr` node.
[ -0.4868786633014679, -0.06676779687404633, 0.15036258101463318, 0.6247408390045166, 0.01855619251728058, -0.9846726655960083, 0.5937350988388062, 0.8439670205116272, 0.5290089845657349, -0.07860516011714935, -0.11274038255214691, 0.036647580564022064, 0.11889880895614624, 0.874076604843139...
api/document/createattributens/index.md
API - Document - createAttributeNS - Syntax - Exceptions: - `NamespaceError` `DOMException`: Thrown if the `namespaceURI` value is: - not a valid namespace URI. - set to the empty string when `prefix` has a value. - not the value `http://www.w3.org/XML/1998/namespace` or `http://www.w3.org/2000/xmlns/` when `pre...
[ -0.1568676233291626, -0.02023143693804741, 0.03541220724582672, 0.8046446442604065, -0.055350158363580704, -1.9136171340942383, 0.7115760445594788, 0.5372442007064819, 0.6320649981498718, 0.2678496241569519, -0.6447615027427673, 0.565582275390625, -0.0020908117294311523, -0.667968451976776...
api/document/createattributens/index.md
API - Document - createAttributeNS - Examples - Creating a namespaced attribute: This example creates an `xml:lang` attribute with the XML namespace and attaches it to a paragraph element. This attribute specifies the language of the element's content for XML processing. Example: <p id="greeting">Bonjour!</p> Examp...
[ 0.25287315249443054, -0.2422378808259964, 0.3026543855667114, 0.8505585193634033, -0.15622921288013458, -1.756387710571289, 0.8633657097816467, -0.042365893721580505, -0.26472795009613037, 0.22338281571865082, -0.5203406810760498, 0.20643576979637146, 0.18686769902706146, 0.143005743622779...
api/document/createattributens/index.md
API - Document - createAttributeNS - Examples - Creating an unprefixed attribute: In HTML documents, unprefixed attributes (such as SVG presentation attributes like `viewBox`) are in the null namespace. Use the empty string for the `namespaceURI` parameter to match this. Example: <svg id="svg"></svg> Example: cons...
[ -0.16639262437820435, -0.3247758448123932, 0.6100062727928162, 1.1805669069290161, -0.22027811408042908, -1.4240802526474, 0.326254278421402, 0.4375822842121124, 0.6228387951850891, 0.0271078459918499, -0.49994605779647827, -0.08497727662324905, 0.5519846677780151, 0.11367052793502808, 0...
api/eventsource/message_event/index.md
API - EventSource - message event: Note: This feature is available in Web Workers. The `message` event of the `EventSource` interface is fired when data is received through an event source. This event is not cancelable and does not bubble.
[ -0.5193641185760498, -0.17875239253044128, 0.08288868516683578, 0.13167576491832733, 0.07821410894393921, -1.6371606588363647, 0.033704690635204315, 1.6740463972091675, -0.5056271553039551, -0.04641873016953468, 0.3061186671257019, 0.5363391637802124, 0.7888503670692444, 0.8287509679794312...
api/eventsource/message_event/index.md
API - EventSource - message event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("message", (event) => { }) onmessage = (event) => { }
[ 0.1341158151626587, -0.3974670469760895, 0.25776416063308716, -0.4188164472579956, 0.23974493145942688, -1.9810659885406494, 0.1890980452299118, 0.9564163684844971, 0.22075864672660828, -0.36877068877220154, -0.5590628385543823, 0.8340415358543396, 0.31488490104675293, 0.014828123152256012...
api/eventsource/message_event/index.md
API - EventSource - message event - Event type: A `MessageEvent`. Inherits from `Event`.
[ -0.43877723813056946, -0.5327524542808533, 0.10486985743045807, -0.8912703394889832, -0.28098034858703613, -1.4443528652191162, -0.19044575095176697, 0.5832034945487976, 0.03753860294818878, -0.41771677136421204, -0.343126118183136, 0.44386136531829834, 0.3703370988368988, 0.35853818058967...
api/eventsource/message_event/index.md
API - EventSource - message event - Examples: In this basic example, an `EventSource` is created to receive events from the server; a page with the name `sse.php` is responsible for generating the events. Example: const evtSource = new EventSource("sse.php"); const eventList = document.querySelector("ul"); evtSourc...
[ 0.362416535615921, -0.6960517764091492, -0.03133636340498924, 0.55656498670578, -0.033013783395290375, -2.1197597980499268, -0.1310914158821106, 1.1598094701766968, -0.43345528841018677, 0.5031421184539795, 0.2989303469657898, 1.2136098146438599, -0.005807964131236076, 0.4205876886844635, ...
api/eventsource/message_event/index.md
API - EventSource - message event - Examples - onmessage equivalent: Example: evtSource.onmessage = (e) => { const newElement = document.createElement("li"); newElement.textContent = `message: ${e.data}`; eventList.appendChild(newElement); };
[ 0.21459129452705383, -0.5855808854103088, 0.1487005650997162, -0.5202174186706543, 0.29847654700279236, -1.9115629196166992, -0.11079268902540207, 1.1507548093795776, -0.09825064241886139, -0.24070033431053162, -0.4044139087200165, 0.8532330393791199, 0.21681787073612213, 0.789280176162719...
api/usb/connect_event/index.md
API - USB - connect event: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `connect` event of the `USB` interface is fired whenever a paired device is connected.
[ -0.14248338341712952, 0.4784192144870758, -0.864440381526947, 0.2610272169113159, -0.15098610520362854, 0.008264254778623581, 0.20187373459339142, 0.8325381875038147, -0.18581227958202362, 0.2767874598503113, 0.36366406083106995, 1.3188647031784058, 0.9814106225967407, 0.26861655712127686,...
api/usb/connect_event/index.md
API - USB - connect event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("connect", (event) => { }) onconnect = (event) => { }
[ 0.3109467327594757, -0.133401021361351, -0.7534145712852478, 0.13456588983535767, -0.3278955817222595, -0.6744044423103333, 0.1553749442100525, 0.5747106671333313, 0.0846954733133316, 0.40380987524986267, -0.06841757893562317, 0.8952476978302002, 0.44111117720603943, -0.09565949440002441, ...
api/usb/connect_event/index.md
API - USB - connect event - Event type: A `USBConnectionEvent`. Inherits from `Event`.
[ 0.012608266435563564, -0.25203225016593933, -0.9981704950332642, -0.007181894034147263, -0.7206769585609436, -0.5751161575317383, 0.17234601080417633, 0.47770023345947266, 0.29263392090797424, 0.15807339549064636, 0.28165358304977417, 0.9007264971733093, 0.9392167925834656, 0.0627689957618...
api/usb/connect_event/index.md
API - USB - connect event - Examples: Once a USB device is connected, you might want to update the UI. Example: navigator.usb.addEventListener("connect", (event) => { // Add event.device to the UI. }); Alternatively, you can use the `USB.onconnect` event handler property to establish a handler for the `connect` e...
[ -0.021276315674185753, -0.18543042242527008, -0.7920281291007996, 0.15702158212661743, -0.23234090209007263, -0.8164055347442627, 0.26466885209083557, 0.28113579750061035, -0.12254422903060913, 0.2147817462682724, -0.11741448938846588, 0.49830442667007446, 0.6458311080932617, 0.35348272323...
api/usb/disconnect_event/index.md
API - USB - disconnect event: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `disconnect` event of the `USB` interface is fired whenever a paired device is disconnected.
[ 0.018464818596839905, 0.27647554874420166, -1.3495652675628662, 0.12141375243663788, -0.15332484245300293, -0.16104386746883392, 0.18609458208084106, 0.9845224618911743, -0.0042659565806388855, 0.4108715355396271, 0.42714011669158936, 1.0878980159759521, 0.9056962728500366, 0.3063712716102...
api/usb/disconnect_event/index.md
API - USB - disconnect event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("disconnect", (event) => { }) ondisconnect = (event) => { }
[ 0.12102377414703369, -0.19538229703903198, -0.793385922908783, 0.18812087178230286, -0.36469587683677673, -0.9554454684257507, 0.17211274802684784, 0.5803967714309692, -0.08629711717367172, 0.5714302659034729, -0.012126913294196129, 0.6651537418365479, 0.6635989546775818, -0.00419924408197...
api/usb/disconnect_event/index.md
API - USB - disconnect event - Event type: A `USBConnectionEvent`. Inherits from `Event`.
[ -0.3041975796222687, -0.11560126394033432, -0.8258315324783325, 0.003926709294319153, -0.9079344868659973, -0.6436777114868164, 0.5096943378448486, 0.21474844217300415, 0.13280412554740906, 0.8254215121269226, 0.29964959621429443, 0.8171346187591553, 0.5148969292640686, 0.40137967467308044...
api/usb/disconnect_event/index.md
API - USB - disconnect event - Examples: Once a USB device is disconnected, you might want to update the UI. Example: navigator.usb.addEventListener("disconnect", (event) => { // Remove event.device from the UI. }); Alternatively, you can use the `USB.ondiscconnect` event handler property to establish a handler f...
[ -0.4285074472427368, -0.23733334243297577, -1.238425850868225, -0.00567622110247612, -0.2537839114665985, -1.8211125135421753, 0.2492603063583374, 0.4592459201812744, -0.2844266891479492, 0.4063953161239624, 0.09796293079853058, 0.42134523391723633, 0.5005853176116943, 0.5416092872619629, ...
api/htmlvideoelement/enterpictureinpicture_event/index.md
API - HTMLVideoElement - enterpictureinpicture event: The `enterpictureinpicture` event is fired when the `HTMLVideoElement` enters picture-in-picture mode successfully. This event is not cancelable and does not bubble.
[ -0.7325404286384583, 0.038887057453393936, 0.1655699461698532, 0.7594361305236816, 0.28616973757743835, -1.7211105823516846, -0.07514259219169617, 0.7724586129188538, -1.1362050771713257, -0.49793756008148193, -0.25483763217926025, 0.3100529611110687, 0.8288723826408386, 0.7730337977409363...
api/htmlvideoelement/enterpictureinpicture_event/index.md
API - HTMLVideoElement - enterpictureinpicture event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("enterpictureinpicture", (event) => { }) onenterpictureinpicture = (event) => { }
[ -0.6605978608131409, -0.10558223724365234, 0.12678463757038116, 0.9775418043136597, 0.03375940024852753, -1.8010947704315186, 0.1375306099653244, 1.0698891878128052, -0.8046317100524902, -0.41346976161003113, -0.5002193450927734, 0.3173927962779999, 1.046373724937439, 0.559505045413971, ...
api/htmlvideoelement/enterpictureinpicture_event/index.md
API - HTMLVideoElement - enterpictureinpicture event - Event type: A `PictureInPictureEvent`. Inherits from `Event`.
[ -1.4318267107009888, -0.2802965044975281, 0.2970779538154602, 0.5854297280311584, -0.29167789220809937, -1.400745153427124, -0.5101840496063232, 1.0325815677642822, -0.5185126066207886, -0.48774462938308716, 0.05273169279098511, 0.3909941017627716, 0.6151714324951172, 0.3610815405845642, ...
api/htmlvideoelement/enterpictureinpicture_event/index.md
API - HTMLVideoElement - enterpictureinpicture event - Examples: These examples add an event listener for the HTMLVideoElement's `enterpictureinpicture` event, then post a message when that event handler has reacted to the event firing. Using `addEventListener()`: Example: const video = document.querySelector("#vid...
[ 0.24375620484352112, -0.5115606784820557, -0.02174091339111328, 0.6549133658409119, 0.30025798082351685, -1.580191731452942, 0.15368647873401642, 1.3818856477737427, -1.4501533508300781, -0.328019917011261, 0.20517556369304657, 0.5422190427780151, 0.6949558854103088, 0.9416201114654541, ...
api/htmlvideoelement/leavepictureinpicture_event/index.md
API - HTMLVideoElement - leavepictureinpicture event: The `leavepictureinpicture` event is fired when the `HTMLVideoElement` leaves picture-in-picture mode successfully. This event is not cancelable and does not bubble.
[ -1.0594526529312134, -0.017458723857998848, 0.48019009828567505, 0.6727684140205383, -0.14795824885368347, -1.8186942338943481, 0.043622106313705444, 0.8974651098251343, -0.5755928158760071, -0.21539439260959625, -0.12956668436527252, 0.23203295469284058, 1.1732124090194702, 0.635259091854...
api/htmlvideoelement/leavepictureinpicture_event/index.md
API - HTMLVideoElement - leavepictureinpicture event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("leavepictureinpicture", (event) => { }) onleavepictureinpicture = (event) => { }
[ -0.29468950629234314, -0.44124341011047363, 0.07904297858476639, 0.7837902307510376, 0.2597498595714569, -1.7804508209228516, 0.28322532773017883, 1.4086552858352661, -1.109029769897461, -0.7551296949386597, -0.3879031240940094, 1.1285096406936646, 0.7152261734008789, 0.9633971452713013, ...
api/htmlvideoelement/leavepictureinpicture_event/index.md
API - HTMLVideoElement - leavepictureinpicture event - Event type: A `PictureInPictureEvent`. Inherits from `Event`.
[ -1.2148905992507935, -0.12989354133605957, 0.3074331283569336, 0.34656769037246704, -0.3197236657142639, -1.360716700553894, -0.298112154006958, 1.149560570716858, -0.4994628429412842, -0.4108138084411621, 0.27681684494018555, 0.7560892701148987, 0.5659923553466797, 0.8155566453933716, 0...
api/htmlvideoelement/leavepictureinpicture_event/index.md
API - HTMLVideoElement - leavepictureinpicture event - Examples: These examples add an event listener for the HTMLVideoElement's `leavepictureinpicture` event, then post a message when that event handler has reacted to the event firing. Using `addEventListener()`: Example: const video = document.querySelector("#vid...
[ -0.054595835506916046, -0.7265952825546265, -0.02969897724688053, 1.018248438835144, 0.23352742195129395, -1.5452401638031006, 0.13133181631565094, 1.5124715566635132, -1.1535664796829224, -0.3196449875831604, -0.04185294732451439, 0.7634795308113098, 0.6345264315605164, 1.0992130041122437...
api/midiaccess/statechange_event/index.md
API - MIDIAccess - statechange event: Secure context: This feature is available only in secure contexts (HTTPS). The `statechange` event of the `MIDIAccess` interface is fired when a new MIDI port is added or when an existing port changes state.
[ 0.15788643062114716, -0.13838626444339752, -0.6319703459739685, 0.5649276971817017, -0.5188875198364258, -0.9392346143722534, -0.030645595863461494, 0.8217984437942505, 0.04345061630010605, 0.12458222359418869, -0.5694867372512817, 0.1080252081155777, 0.5672811269760132, -0.050846286118030...
api/midiaccess/statechange_event/index.md
API - MIDIAccess - statechange event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("statechange", (event) => { }) onstatechange = (event) => { }
[ 0.12952366471290588, -0.3118445575237274, -0.08512448519468307, -0.08223220705986023, -0.27954208850860596, -1.2655365467071533, -0.034890975803136826, 1.3806544542312622, 0.17593291401863098, 0.13387000560760498, -0.5548373460769653, 0.21368443965911865, 0.12123842537403107, -0.0301739405...
api/midiaccess/statechange_event/index.md
API - MIDIAccess - statechange event - Event type: A `MIDIConnectionEvent`. Inherits from `Event`.
[ -0.18173116445541382, -0.3296431303024292, -0.1849880814552307, -0.3359653353691101, -0.9757344126701355, -1.1488134860992432, -0.019846908748149872, 1.0469053983688354, -0.02489307150244713, 0.047273311764001846, -0.6198644042015076, -0.1126011312007904, -0.001777438446879387, 0.290278643...
api/midiaccess/statechange_event/index.md
API - MIDIAccess - statechange event - Example: The `Navigator.requestMIDIAccess()` method returns a promise that resolves with a `MIDIAccess` object. When a port changes state, information about that port is printed to the console. Example: navigator.requestMIDIAccess().then((access) => { access.onstatechange = (...
[ 0.10599678009748459, -0.5094882249832153, -0.6957883834838867, 0.3982374668121338, -0.25862085819244385, -1.42014479637146, 0.24253439903259277, 1.020200490951538, -0.33444756269454956, 0.5307530164718628, -0.23713012039661407, 0.06049824506044388, 0.007450278848409653, 0.5273136496543884,...
api/xrquadlayer/redraw_event/index.md
API - XRQuadLayer - redraw event: The `redraw` event is sent to the `XRQuadLayer` object when the underlying resources of the layer are lost or when the XR Compositor can no longer reproject the layer. If this event is sent, authors should redraw the content of the layer in the next XR animation frame. See also the `...
[ -1.103616714477539, -0.2735723853111267, -0.20725320279598236, 0.3491905927658081, -0.026971258223056793, -1.3603379726409912, 0.8799741864204407, 1.2908499240875244, -0.5365426540374756, 0.23868732154369354, -0.19772519171237946, 0.44902700185775757, -0.11012526601552963, 0.86271387338638...
api/xrquadlayer/redraw_event/index.md
API - XRQuadLayer - redraw event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("redraw", (event) => { }) onredraw = (event) => { }
[ -0.3666468560695648, -0.24510274827480316, -0.13533879816532135, -0.09474585950374603, -0.1497553586959839, -0.8419265151023865, 0.6190542578697205, 0.7394285798072815, -0.022107921540737152, 0.4144352674484253, -0.4768109619617462, 0.2486777901649475, -0.2566031217575073, 0.09170736372470...
api/xrquadlayer/redraw_event/index.md
API - XRQuadLayer - redraw event - Event type: An `XRLayerEvent`. Inherits from `Event`.
[ -0.9136932492256165, -0.3006751537322998, 0.2761296033859253, -0.059825800359249115, -0.6949609518051147, -0.9215871691703796, 0.32434844970703125, 0.6976093053817749, -0.02782806009054184, 0.2834581136703491, -0.024867236614227295, 0.5530839562416077, -0.01491202600300312, 0.2399877607822...
api/xrquadlayer/redraw_event/index.md
API - XRQuadLayer - redraw event - Examples - Using the `redraw` event: You can pass `redraw` to `addEventListener()`: Example: quadLayer.addEventListener("redraw", (event) => { // redraw the layer }); Alternatively, you can use the `onredraw` event handler property to establish a handler for the `redraw` event: ...
[ -0.8015289902687073, -0.3025533854961395, -0.25153443217277527, 0.20360471308231354, -0.3177288770675659, -1.2036634683609009, 0.6897516250610352, 0.9414236545562744, -0.09234556555747986, 0.3575902283191681, -0.3257220685482025, 0.12397009134292603, 0.051798850297927856, 0.267615646123886...
api/workernavigator/index.md
API - WorkerNavigator: Note: This feature is available in Web Workers. The `WorkerNavigator` interface represents a subset of the `Navigator` interface allowed to be accessed from a `Worker`. Such an object is initialized for each worker and is available via the `self.navigator` property.
[ -0.11286786943674088, -0.20297645032405853, -0.8541666269302368, 0.6749720573425293, 0.4672166705131531, -1.2376214265823364, 0.3151607811450958, 1.0963913202285767, 0.37763991951942444, 0.28290003538131714, -0.18611076474189758, 0.3815089762210846, 0.4160849452018738, 0.42640817165374756,...
api/workernavigator/index.md
API - WorkerNavigator - Instance properties: The `WorkerNavigator` interface doesn't inherit any property. - `WorkerNavigator.appCodeName` (read only): Always returns `'Mozilla'`, in any browser. This property is kept only for compatibility purposes. - `WorkerNavigator.appName` (read only): Returns the official name ...
[ 0.07802223414182663, 0.09191763401031494, -0.22705793380737305, 0.0953979641199112, -0.2082439512014389, -1.0866947174072266, 0.36638733744621277, 0.5390045046806335, 0.6647927761077881, 0.26640844345092773, -0.9777684211730957, 0.005534663796424866, 0.3167975842952728, 0.34804755449295044...
api/workernavigator/index.md
API - WorkerNavigator - Instance methods: The `WorkerNavigator` interface doesn't inherit any method. - `WorkerNavigator.clearAppBadge()` (secure context): Clears a badge on the current app's icon and returns a `Promise` that resolves with `undefined`. - `WorkerNavigator.setAppBadge()` (secure context): Sets a badge ...
[ 0.1329663246870041, 0.13541755080223083, -0.9052324295043945, 0.12614679336547852, -0.2041846215724945, -1.3011547327041626, 0.38169363141059875, 0.8141699433326721, 0.0025582611560821533, 0.05041813850402832, -0.9583684802055359, -0.12127439677715302, 0.6640664935112, -0.16213040053844452...
api/workernavigator/globalprivacycontrol/index.md
API - WorkerNavigator - globalPrivacyControl: Note: This feature is available in Web Workers. The `WorkerNavigator.globalPrivacyControl` read-only property returns the user's Global Privacy Control setting for the current website. This setting indicates whether the user consents to the website or service selling or s...
[ -1.1026161909103394, -0.5245803594589233, -0.6858017444610596, 0.7851263284683228, 0.4086010456085205, -1.2238521575927734, 0.4335063397884369, 0.888748824596405, -0.13101711869239807, 0.8091535568237305, -0.4636475443840027, 0.8606896996498108, 0.3010222613811493, 0.07772870361804962, 0...
api/workernavigator/globalprivacycontrol/index.md
API - WorkerNavigator - globalPrivacyControl - Value: `true` if the user explicitly does not grant consent to sell or share their data. `false` if the user either grants consent, or has not indicated a preference.
[ -1.3378297090530396, -0.7381120920181274, -0.22663424909114838, 0.4930337071418762, -0.16531646251678467, -1.6031630039215088, 0.3676944971084595, 0.21476800739765167, -0.05438337102532387, 0.1680797040462494, -0.4850499927997589, 0.5309481620788574, 0.4333159625530243, -0.310649037361145,...
api/workernavigator/globalprivacycontrol/index.md
API - WorkerNavigator - globalPrivacyControl - Example: Example: console.log(navigator.globalPrivacyControl); // "true" if the user has specifically indicated they do not want their data shared or sold, otherwise "false".
[ -0.860952615737915, -0.996362030506134, -0.23568251729011536, 0.6707793474197388, -0.43030083179473877, -1.4590920209884644, 0.6613337993621826, 0.0017558429390192032, -0.4461859464645386, 0.592526376247406, -0.36469346284866333, 0.27581846714019775, 0.26226457953453064, -0.608751356601715...
api/stylepropertymap/append/index.md
API - StylePropertyMap - append: The `append()` method of the `StylePropertyMap` interface adds the passed CSS value to the `StylePropertyMap` with the given property.
[ -1.1131811141967773, -0.3600447475910187, -0.44989296793937683, -0.08296129107475281, -0.4812687635421753, -1.3743053674697876, 0.7483965754508972, 0.33318623900413513, -0.13431602716445923, -0.04872974008321762, -0.05223897099494934, 0.37195321917533875, 0.5205051898956299, 0.096990644931...
api/stylepropertymap/append/index.md
API - StylePropertyMap - append - Syntax: Example: append(property, value)
[ -1.5780891180038452, -0.5762262940406799, 0.15768511593341827, -0.17282839119434357, -0.32890215516090393, -1.124416708946228, -0.4457341432571411, 0.6188880205154419, 0.26983824372291565, -0.429185688495636, -0.5634000301361084, 0.7133859395980835, -0.7684547901153564, -0.2702100276947021...
api/stylepropertymap/append/index.md
API - StylePropertyMap - append - Syntax - Parameters: - `property`: An identifier indicating the stylistic feature (e.g., font, width, background color) to add. - `value`: The value the given property should have.
[ -0.5280046463012695, 0.3225023150444031, -0.48970767855644226, 0.037296220660209656, 0.11017020046710968, -0.8062519431114197, 0.3580514192581177, 0.7836307287216187, 0.3036712110042572, -0.03909797966480255, -0.5809558033943176, 0.4093789756298065, -0.2923678159713745, -0.1453014910221099...
api/stylepropertymap/append/index.md
API - StylePropertyMap - append - Syntax - Return value: None (`undefined`).
[ -1.5524479150772095, -0.49244141578674316, -0.14837774634361267, -0.7393456101417542, -0.47534888982772827, -0.6628919839859009, -0.01255093328654766, 0.8856459856033325, -0.05140985548496246, -0.29195278882980347, -0.5330619215965271, 0.7292975187301636, -0.1419515758752823, 0.27634581923...
api/stylepropertymap/append/index.md
API - StylePropertyMap - append - Examples - Basic usage: This example shows an extra background image value being added to the `background-image` property of the element, using `HTMLElement.attributeStyleMap`. Example: // get the button element const buttonEl = document.querySelector("button"); // append another v...
[ -1.5635488033294678, -0.6286129355430603, -0.048755861818790436, 0.1377893090248108, -0.5646226406097412, -0.8677058219909668, 0.3748862147331238, 0.7956222295761108, -0.1337939202785492, -0.37274134159088135, -0.6033183932304382, 0.6926378607749939, 0.21742373704910278, 0.2402411103248596...
api/stylepropertymap/delete/index.md
API - StylePropertyMap - delete: The `delete()` method of the `StylePropertyMap` interface removes the CSS declaration using the given property.
[ -1.0880730152130127, -0.1554996371269226, -0.5124203562736511, -0.15037643909454346, -0.2795593738555908, -1.6494522094726562, 0.5078160166740417, 0.19573044776916504, 0.013610877096652985, 0.31678837537765503, -0.2254655957221985, 0.5200472474098206, 0.3834640681743622, 0.2013567686080932...
api/stylepropertymap/delete/index.md
API - StylePropertyMap - delete - Syntax: Example: delete(property)
[ -1.744754672050476, -0.36033502221107483, 0.17821764945983887, -0.44189199805259705, -0.247171550989151, -1.1725435256958008, -0.5455291271209717, 0.40035587549209595, 0.24411934614181519, -0.2318088561296463, -0.23327043652534485, 0.9268779158592224, -0.12735603749752045, -0.2964178919792...
api/stylepropertymap/delete/index.md
API - StylePropertyMap - delete - Syntax - Parameters: - `property`: An identifier indicating the stylistic feature (e.g., font, width, background color) to remove.
[ -0.3968542814254761, 0.27214330434799194, -0.6525209546089172, 0.15319812297821045, 0.40068191289901733, -1.4919191598892212, 0.1775558888912201, 0.9846642017364502, 0.2503214478492737, 0.34926897287368774, -0.8378884792327881, 0.32640066742897034, -0.37525874376296997, -0.7098485827445984...
api/stylepropertymap/delete/index.md
API - StylePropertyMap - delete - Syntax - Return value: None (`undefined`).
[ -1.5933167934417725, -0.2468489706516266, -0.06613843142986298, -0.5705879330635071, -0.39719414710998535, -0.6175448298454285, 0.004347223788499832, 0.8020454049110413, -0.12787076830863953, -0.0782674178481102, -0.49959325790405273, 0.8490790128707886, 0.37286806106567383, -0.00133631378...
api/stylepropertymap/delete/index.md
API - StylePropertyMap - delete - Examples - Basic usage: The following example removes the `background-image` property from the element's style attribute. Example: // get the button element const buttonEl = document.querySelector("button"); // remove background-image from style attribute buttonEl.attributeStyleMap...
[ -1.4544848203659058, 0.4044288098812103, 0.033879734575748444, -0.024293970316648483, -0.3252243995666504, -1.4463759660720825, 0.4146536588668823, 0.8119584918022156, -0.5969698429107666, -0.4396238923072815, -0.45513948798179626, 0.4238336682319641, 0.5456572771072388, 0.0214195325970649...
api/stylepropertymap/set/index.md
API - StylePropertyMap - set: The `set()` method of the `StylePropertyMap` interface changes the CSS declaration using the given property.
[ -1.6452573537826538, -0.12400907278060913, -0.28572866320610046, 0.10427755117416382, -0.46407780051231384, -1.4283063411712646, 0.37246593832969666, 0.13833224773406982, -0.06812699884176254, 0.016429536044597626, 0.06358326226472855, 0.5217458009719849, 0.6276348829269409, -0.24658465385...
api/stylepropertymap/set/index.md
API - StylePropertyMap - set - Syntax: Example: set(property, value)
[ -1.8754981756210327, -0.4433818757534027, -0.2350074052810669, -0.2565315365791321, -0.12111327797174454, -1.0822097063064575, -0.9384168386459351, 0.6613559722900391, 0.1729002594947815, -0.3715091347694397, -0.12713119387626648, 0.6658032536506653, -0.38904866576194763, -0.23433823883533...
api/stylepropertymap/set/index.md
API - StylePropertyMap - set - Syntax - Parameters: - `property`: An identifier indicating the stylistic feature (e.g., font, width, background color) to change. - `value`: The value the given property should have.
[ -0.6314111948013306, 0.1656055748462677, -0.7814770340919495, 0.19397863745689392, 0.19134026765823364, -1.2431120872497559, -0.07927635312080383, 0.7851828336715698, 0.480413556098938, -0.12609560787677765, -0.5070236921310425, 0.6271540522575378, -0.04069526493549347, -0.4083165228366852...
api/stylepropertymap/set/index.md
API - StylePropertyMap - set - Syntax - Return value: None (`undefined`).
[ -1.4848531484603882, -0.24358470737934113, -0.0914396420121193, -0.35830655694007874, -0.4939268231391907, -0.4759005010128021, -0.22685162723064423, 1.1118320226669312, -0.1477142572402954, -0.17881238460540771, -0.48759588599205017, 0.9690524339675903, 0.2310263216495514, 0.0020935311913...
api/stylepropertymap/set/index.md
API - StylePropertyMap - set - Examples - Basic usage: This example sets the specified value for the `padding-top` property within the element's style attribute. Example: // get the button element const buttonEl = document.querySelector("button"); // set padding-top on button style attribute buttonEl.attributeStyle...
[ -1.617403507232666, 0.3280908465385437, -0.2629392743110657, 0.610583484172821, -0.4487467408180237, -1.5469276905059814, 0.7917567491531372, 0.5044101476669312, -0.5767995119094849, 0.14649146795272827, -0.09787382185459137, 0.8553102016448975, 0.1933746635913849, -0.2817043662071228, 0...
api/stylepropertymap/clear/index.md
API - StylePropertyMap - clear: The `clear()` method of the `StylePropertyMap` interface removes all declarations in the `StylePropertyMap`.
[ -1.436371922492981, -0.4806101322174072, -0.6455638408660889, 0.267334908246994, -0.2555301785469055, -1.0501797199249268, 0.09757252037525177, 0.318913996219635, 0.25692495703697205, -0.03701894357800484, -0.24002155661582947, 0.7306224703788757, 0.9576157331466675, -0.6103880405426025, ...
api/stylepropertymap/clear/index.md
API - StylePropertyMap - clear - Syntax: Example: clear()
[ -1.5239964723587036, -0.5928478240966797, 0.021117322146892548, -0.1563321053981781, -0.12784706056118011, -1.2201330661773682, -0.26399439573287964, 0.665648341178894, -0.09045256674289703, -0.15135495364665985, 0.0019096322357654572, 1.095511555671692, -0.0682344138622284, -0.44973018765...
api/stylepropertymap/clear/index.md
API - StylePropertyMap - clear - Syntax - Parameters: None.
[ -1.0967179536819458, -0.28061702847480774, 0.07504662126302719, 0.006020255386829376, -0.14315207302570343, -0.5369475483894348, 0.24334219098091125, 1.0677120685577393, -0.007890626788139343, -0.3769356310367584, -0.641894519329071, 0.42897021770477295, 0.1210177093744278, -0.376001417636...
api/stylepropertymap/clear/index.md
API - StylePropertyMap - clear - Syntax - Return value: None (`undefined`).
[ -1.6364105939865112, -0.23169323801994324, -0.024146782234311104, -0.5679997205734253, -0.2559625804424286, -0.43463876843452454, -0.2932937741279602, 0.9299530386924744, 0.05664615333080292, -0.133355975151062, -0.38075852394104004, 0.815380334854126, 0.3500436842441559, -0.02456017956137...
api/stylepropertymap/clear/index.md
API - StylePropertyMap - clear - Examples - Basic usage: The following example removes all styles within the elements style attribute. Example: // get the button element const buttonEl = document.querySelector(".example"); // remove all styles from the style attribute buttonEl.attributeStyleMap.clear();
[ -1.1455601453781128, -0.2394174337387085, 0.00030601024627685547, 0.3575951159000397, -0.37394827604293823, -1.6915720701217651, 0.29152441024780273, 0.26054081320762634, -0.36502382159233093, -0.23992139101028442, -0.3559807240962982, 0.7636383175849915, 0.6542956233024597, -0.18048539757...
api/idbopendbrequest/upgradeneeded_event/index.md
API - IDBOpenDBRequest - upgradeneeded event: The `upgradeneeded` event is fired when an attempt was made to open a database with a version number higher than its current version. This event is not cancelable and does not bubble.
[ -0.2867947816848755, -0.16185803711414337, -0.25060147047042847, 0.6573149561882019, -0.281156063079834, -1.0823179483413696, 0.9954913854598999, 0.7799110412597656, -0.11275146901607513, -0.02231668308377266, -1.0266008377075195, 0.4149307906627655, -0.5961294174194336, 0.9522064924240112...
api/idbopendbrequest/upgradeneeded_event/index.md
API - IDBOpenDBRequest - upgradeneeded event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("upgradeneeded", (event) => { }) onupgradeneeded = (event) => { }
[ 0.10151054710149765, -0.09275797754526138, -0.21919579803943634, 0.3758082389831543, -0.6726830005645752, -0.9126278758049011, 0.9525931477546692, 0.31430065631866455, 0.10311691462993622, 0.1398594230413437, -1.0148558616638184, 0.6178991198539734, -0.2941530644893646, 0.2367023229598999,...
api/idbopendbrequest/upgradeneeded_event/index.md
API - IDBOpenDBRequest - upgradeneeded event - Event type: An `IDBVersionChangeEvent`. Inherits from `Event`.
[ 0.05442938208580017, 0.16637054085731506, -0.056585196405649185, 0.4093101918697357, -0.8823959231376648, -0.9870542883872986, 0.9950034618377686, 0.3768857419490814, 0.1336856484413147, -0.05264195799827576, -0.6571053862571716, 0.24264785647392273, -0.5998901724815369, 0.4877024292945862...
api/idbopendbrequest/upgradeneeded_event/index.md
API - IDBOpenDBRequest - upgradeneeded event - Examples: This example opens a database and handles the `upgradeneeded` event by making any necessary updates to the object store. Example: // Open the database const dBOpenRequest = window.indexedDB.open("toDoList", 4); dBOpenRequest.addEventListener("upgradeneeded", ...
[ 0.8391398787498474, -0.3214859068393707, -0.2109251618385315, 0.5105306506156921, 0.11626209318637848, -1.2434579133987427, 0.8018181920051575, 1.3005746603012085, -0.3036481738090515, 0.1319040209054947, -0.6667006015777588, 0.5902796983718872, -0.4864104092121124, 0.7192261815071106, -...
api/idbopendbrequest/blocked_event/index.md
API - IDBOpenDBRequest - blocked event: The `blocked` handler is executed when an open connection to a database is blocking a `versionchange` transaction on the same database. This event is not cancelable and does not bubble.
[ 1.0497815608978271, -0.024510424584150314, -0.3204980790615082, 0.5883996486663818, -0.19435575604438782, -0.7169367074966431, 0.4336821436882019, 1.2397700548171997, 0.17247167229652405, 0.2682306170463562, -0.6724483370780945, 0.7603039145469666, -0.0849069356918335, 0.5878252387046814, ...
api/idbopendbrequest/blocked_event/index.md
API - IDBOpenDBRequest - blocked event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("blocked", (event) => { }) onblocked = (event) => { }
[ 0.9035051465034485, -0.1970607191324234, -0.042655445635318756, 0.013090662658214569, -0.34120044112205505, -0.5041424036026001, 0.46381866931915283, 0.09963606297969818, 0.2620795965194702, 0.27586275339126587, -1.1644346714019775, 0.45819318294525146, -0.16374577581882477, 0.273172140121...
api/idbopendbrequest/blocked_event/index.md
API - IDBOpenDBRequest - blocked event - Event type: An `IDBVersionChangeEvent`. Inherits from `Event`.
[ 1.013500452041626, 0.22630968689918518, 0.01328926533460617, 0.233623206615448, -0.6500405073165894, -0.9242344498634338, 0.7812044024467468, 0.3713984787464142, 0.1736047863960266, -0.0006344709545373917, -0.6173085570335388, 0.270984023809433, -0.5238867998123169, 0.6148033142089844, -...
api/idbopendbrequest/blocked_event/index.md
API - IDBOpenDBRequest - blocked event - Examples: Using `addEventListener()`: Example: // Open the database const DBOpenRequest = window.indexedDB.open("toDoList", 4); DBOpenRequest.onupgradeneeded = (event) => { const db = event.target.result; db.onerror = () => { console.log("Error creating database"); ...
[ 1.466779351234436, 0.2917138934135437, 0.11984138190746307, 0.5917009115219116, 0.03160847723484039, -0.6550748348236084, 0.6228678226470947, 1.143243432044983, -0.5796433091163635, 0.4356783628463745, -0.28318193554878235, 0.5552995204925537, -0.7143767476081848, 0.6425353288650513, -0....
api/transformstream/index.md
API - TransformStream: Note: This feature is available in Web Workers. The `TransformStream` interface of the Streams API represents a concrete implementation of the pipe chain transform stream concept. It may be passed to the `ReadableStream.pipeThrough()` method in order to transform a stream of data from one form...
[ 0.4639710485935211, -1.1603217124938965, -0.5093472599983215, 0.7666897773742676, 0.5236068367958069, -1.8008671998977661, -0.4191286861896515, 0.9709091186523438, -0.2741444706916809, 0.6693218946456909, 0.5224140286445618, -0.2414315640926361, 0.6320099234580994, -0.3456670343875885, 0...
api/transformstream/index.md
API - TransformStream - Constructor: - `TransformStream()`: Creates and returns a transform stream object, optionally specifying a transformation object and queuing strategies for the streams.
[ -0.4007987678050995, -0.85176020860672, -0.3217276930809021, 1.027561902999878, 0.35888195037841797, -1.6138880252838135, 0.1404394507408142, 1.0129345655441284, -0.5976771712303162, 0.7252818942070007, -0.22700999677181244, -1.0106842517852783, -0.14050544798374176, -0.2848869860172272, ...
api/transformstream/index.md
API - TransformStream - Instance properties: - `TransformStream.readable` (read only): The `readable` end of a `TransformStream`. - `TransformStream.writable` (read only): The `writable` end of a `TransformStream`.
[ -0.3150518536567688, -0.086202472448349, 0.41073811054229736, -0.20510928332805634, 0.3929286003112793, -1.2490578889846802, 0.3332494795322418, -0.23064011335372925, 0.6058839559555054, -0.33858487010002136, -0.01476232148706913, -1.0148777961730957, 0.13616718351840973, -0.16061255335807...
api/transformstream/index.md
API - TransformStream - Instance methods: None
[ -0.8053560853004456, -0.14980223774909973, -0.4964408874511719, -0.9837846159934998, -0.2557317614555359, 0.781685471534729, 1.237561583518982, 1.913051962852478, -0.7927319407463074, -0.39491334557533264, 0.7175775170326233, -1.6888819932937622, -0.11940287798643112, -0.3972052335739136, ...
api/transformstream/index.md
API - TransformStream - Examples - Anything-to-uint8array stream: In the following example, a transform stream passes through all chunks it receives as `Uint8Array` values. Example: const transformContent = { start() {}, // required. async transform(chunk, controller) { chunk = await chunk; switch (typeo...
[ 0.45890697836875916, -0.7008950114250183, 0.46235179901123047, 0.19706395268440247, 0.6506770253181458, -1.3593140840530396, -0.05974067375063896, 1.0521187782287598, -0.047138284891843796, 0.3524743914604187, 0.16161492466926575, -0.32078561186790466, 0.28161969780921936, -0.2110903561115...
api/transformstream/index.md
API - TransformStream - Examples - Chaining multiple ReadableStreams together: This is a useful one, where multiple streams can be conjoined. Examples include building a PWA with progressive loading and progressive streaming. Example: let responses = [/* conjoined response tree */]; let { readable, writable } = new ...
[ -0.019964102655649185, -0.1397712379693985, 0.24263423681259155, 0.19237473607063293, 0.2184402346611023, -1.5953118801116943, 0.671431839466095, 0.746720016002655, 0.12229403853416443, 0.669768214225769, -0.28481313586235046, -0.6519755721092224, 0.012780122458934784, -0.5698609948158264,...
api/idbrequest/index.md
API - IDBRequest: Note: This feature is available in Web Workers. The `IDBRequest` interface of the IndexedDB API provides access to results of asynchronous requests to databases and database objects using event handler attributes.
[ 0.3151297867298126, -0.022894244641065598, -0.35973289608955383, 0.3245220482349396, -0.3426172733306885, -0.8694889545440674, 0.1758643239736557, 0.1907072514295578, 0.3411021828651428, 0.6053153276443481, -0.748751699924469, 0.7424105405807495, 0.6673036813735962, 0.46462053060531616, ...
api/idbrequest/index.md
API - IDBRequest - Instance properties: Also inherits properties from `EventTarget`. - `IDBRequest.error` (read only): Returns a `DOMException` in the event of an unsuccessful request, indicating what went wrong. - `IDBRequest.result` (read only): Returns the result of the request. If the request is not completed, th...
[ 0.2833968698978424, -0.4689132869243622, -0.0648050457239151, 0.8341342806816101, 0.145624577999115, -0.969240665435791, 1.0528826713562012, 0.47690171003341675, -0.23228110373020172, 0.031090013682842255, -1.036998987197876, 0.21698078513145447, 0.4656490981578827, 0.4809279441833496, 0...
api/idbrequest/index.md
API - IDBRequest - Instance methods: No methods, but inherits methods from `EventTarget`.
[ -0.07332494854927063, -0.27993521094322205, 0.015684977173805237, -0.04876221716403961, -1.039762020111084, -0.8258683681488037, 0.7713366746902466, 0.15415255725383759, -0.5050925016403198, -0.15218834578990936, -0.7784133553504944, 0.23297587037086487, 0.21278272569179535, -0.01303502917...
api/idbrequest/index.md
API - IDBRequest - Events: Listen to these events using `addEventListener()` or by assigning an event listener to the `oneventname` property of this interface. - `error`: Fired when an error caused a request to fail. - `success`: Fired when an `IDBRequest` succeeds.
[ 0.8818415999412537, -0.30014950037002563, -0.5480290651321411, -0.3298441767692566, -0.19533014297485352, -1.0811238288879395, 0.7514235973358154, -0.0895223468542099, 0.3907545208930969, 0.23510563373565674, -0.5452662110328674, -0.190949946641922, 0.1466982066631317, 0.2413789927959442, ...
api/idbrequest/index.md
API - IDBRequest - Description: The results of all database read and write operations are reported using a request object of this type. The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the inf...
[ 0.9950056076049805, 0.5451470613479614, -0.42526739835739136, -0.2020094096660614, 0.14177188277244568, -0.17922969162464142, 0.8092795014381409, 1.1607433557510376, -0.5747772455215454, 0.1814337521791458, -0.7013662457466125, 0.5333023071289062, 0.2033700942993164, 0.5964968800544739, ...
api/idbrequest/index.md
API - IDBRequest - Example - Basic usage: In the following code snippet, we open a database asynchronously and make a request; event listeners for `error` and `success` are included to handle the success and error cases. For a full working example, see our To-do Notifications app (view example live.) Example: let db...
[ 1.0655694007873535, -0.38724982738494873, -0.20177772641181946, 0.34938719868659973, -0.2999337911605835, -0.7582535743713379, 0.9945265054702759, 0.8142341375350952, 0.703935444355011, 0.14215068519115448, -0.9015655517578125, 0.7005585432052612, 0.2591652572154999, 0.46809059381484985, ...
api/idbrequest/result/index.md
API - IDBRequest - result: Note: This feature is available in Web Workers. The `result` read-only property of the `IDBRequest` interface returns the result of the request. The value depends on the request that was made. For example, the `IDBObjectStore.getAllRecords()` and `IDBIndex.getAllRecords()` methods populate...
[ 0.22113460302352905, 0.057630427181720734, -0.4733576774597168, -0.034288190305233, -0.5049669146537781, -1.2896504402160645, 0.5978073477745056, 0.03753482922911644, 0.3570815622806549, -0.001036098226904869, -0.4121452867984772, 0.9101551175117493, 0.6868064999580383, 0.1441316306591034,...
api/idbrequest/result/index.md
API - IDBRequest - result - Value: any.
[ 0.35099396109580994, 0.048944830894470215, -0.07849960029125214, -0.45082584023475647, -0.970115065574646, -0.18296493589878082, 1.3550057411193848, 0.39935359358787537, -0.4681342840194702, 0.10494070500135422, -0.9232396483421326, 0.5698668956756592, 0.09535740315914154, -0.0182054787874...
api/idbrequest/result/index.md
API - IDBRequest - result - Value - Exceptions: - `InvalidStateError` `DOMException`: Thrown when attempting to access the property if the request is not completed, and therefore, the result is not available.
[ 0.36235490441322327, -0.6101598143577576, 0.19078055024147034, -0.1232818141579628, -0.3390612006187439, -1.4926782846450806, 0.4007798135280609, 0.42062634229660034, -0.3482300937175751, 0.3787813186645508, -0.9005666375160217, 0.8351805806159973, 0.19065460562705994, -0.35432541370391846...
api/idbrequest/result/index.md
API - IDBRequest - result - Examples - Basic usage: The following example requests a given record title. On success, the associated record is retrieved from the `IDBObjectStore` (made available as `objectStoreTitleRequest.result`), one property of the record is updated, and then the updated record is put back into the...
[ 0.2953844964504242, -0.3659684956073761, -0.3016454577445984, 0.7747747302055359, 0.2166285514831543, -1.0769380331039429, 0.4661937952041626, 0.7861136198043823, -0.26488229632377625, 0.3654773235321045, -0.7863548994064331, 0.41911178827285767, -0.088097482919693, 0.3392654359340668, 0...
api/eventtarget/dispatchevent/index.md
API - EventTarget - dispatchEvent: Note: This feature is available in Web Workers. The `dispatchEvent()` method of the `EventTarget` sends an `Event` to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional b...
[ -0.0585414320230484, -0.9126344919204712, -0.5324947834014893, 0.42546942830085754, -0.16559961438179016, -1.5149370431900024, 0.23735597729682922, 0.4854058027267456, -0.26125818490982056, 0.6249760985374451, 0.39994943141937256, 1.0281059741973877, -0.26977890729904175, 0.421161234378814...
api/eventtarget/dispatchevent/index.md
API - EventTarget - dispatchEvent - Syntax: Example: dispatchEvent(event)
[ -0.3092004358768463, -0.36297503113746643, 0.25715458393096924, -0.28058990836143494, -0.6283417344093323, -1.5669224262237549, 0.2778063714504242, 0.07654453068971634, -0.24704188108444214, 0.32039588689804077, 0.35475772619247437, 0.9655460119247437, -0.5800537467002869, 0.13766930997371...
api/eventtarget/dispatchevent/index.md
API - EventTarget - dispatchEvent - Syntax - Parameters: - `event`: The `Event` object to dispatch. Its `Event.target` property will be set to the current `EventTarget`.
[ -0.4640047550201416, -0.7851934432983398, -0.2800756096839905, 0.263082891702652, -0.08623595535755157, -1.9998148679733276, 0.004861354827880859, 0.597894549369812, -0.18616721034049988, 0.365837037563324, 0.25516170263290405, 1.2951574325561523, -0.5053828954696655, 0.3710639774799347, ...
api/eventtarget/dispatchevent/index.md
API - EventTarget - dispatchEvent - Syntax - Return value: `false` if `event` is cancelable, and at least one of the event handlers which received `event` called `Event.preventDefault()`. Otherwise `true`.
[ -0.8479406237602234, -0.21476466953754425, 0.12196454405784607, -0.1297609657049179, -0.5993281006813049, -1.5697356462478638, 0.13084496557712555, 0.561667799949646, 0.15027979016304016, 0.4061014950275421, -0.6808573603630066, 1.1001956462860107, -0.10889562219381332, 0.5905407667160034,...
api/eventtarget/dispatchevent/index.md
API - EventTarget - dispatchEvent - Syntax - Exceptions: - `InvalidStateError` `DomException`: Thrown if the event's type was not specified during event initialization. Warning: Exceptions thrown by event handlers are reported as uncaught exceptions. The event handlers run on a nested callstack; they block the caller...
[ -0.38490888476371765, -1.2035250663757324, -0.46479010581970215, 0.602985143661499, 0.057863205671310425, -1.7988828420639038, -0.20011943578720093, 0.8779780864715576, 0.15108035504817963, 0.4694554805755615, -0.8768242001533508, 0.9654558897018433, 0.28974419832229614, -0.232086732983589...
api/eventtarget/dispatchevent/index.md
API - EventTarget - dispatchEvent - Example: See Creating and dispatching events.
[ -0.7798089981079102, -0.567131757736206, 0.17287109792232513, 0.4047450125217438, -0.3286018371582031, -0.7781205177307129, 0.3527057468891144, 0.009456504136323929, -0.5219330787658691, 0.14300838112831116, 0.269619882106781, 0.7267178893089294, -0.4773162305355072, 0.3740967810153961, ...
api/cssmathnegate/cssmathnegate/index.md
API - CSSMathNegate: The `CSSMathNegate()` constructor creates a new `CSSMathNegate` object which negates the value passed into it.
[ -0.1899304986000061, 0.5131968855857849, -0.4208296835422516, 0.23497876524925232, 0.5412641167640686, -2.095869779586792, 0.6325085163116455, 1.1923655271530151, -0.45543810725212097, 0.43756651878356934, 0.2960108518600464, 0.011690221726894379, 0.07850363105535507, 0.26398807764053345, ...
api/cssmathnegate/cssmathnegate/index.md
API - CSSMathNegate - Syntax: Example: new CSSMathNegate(arg)
[ -0.9279468059539795, 0.19133611023426056, -0.4708489775657654, -0.1618078202009201, 0.031634725630283356, -1.985526442527771, 0.10045768320560455, 0.42102694511413574, 0.2838376760482788, 0.07610705494880676, 0.5149414539337158, 0.4164596199989319, 0.09762914478778839, 0.13391467928886414,...