Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
7 results across 6 corpora for encodeURIComponent().
Encyclopedia 1
Data URI scheme
of a data: URI. ===JavaScript=== A JavaScript statement that opens an embedded subwindow, as for a footnote link: window.open('data:text/html;charset=utf-8,' + encodeURIComponent( // Escape for URL formatting ' '+ ' '+ ' Embedded Window '+ ' 42 '+ ' ' ) ); ===SVG=== A Scalable Vector Graphic image containing an embedded JPEG image encoded in Base64: ==Malware and phishing== The data URI can be utilized to construct a
Dictionary 0
This corpus is unavailable: timeout
Papers 0
This corpus is unavailable: timeout
Developer library 6
Page types
that the property has a function value and starts with a lowercase letter. #### Examples - [`eval()`](/docs/Web/JavaScript/Reference/Global_Objects/eval) - [`encodeURIComponent()`](/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent) #### Templates - [JavaScript function page template](/docs/MDN/Writing_guidelines/Page_structures/Page_types/JavaScript_function_page_template) ### JavaScript global pr
identity.launchWebAuthFlow()
uthURL = "https://accounts.google.com/o/oauth2/auth"; authURL += `?client_id=${clientID}`; authURL += `&response_type=token`; authURL += `&redirect_uri=${encodeURIComponent(redirectURL)}`; authURL += `&scope=${encodeURIComponent(scopes.join(" "))}`; return browser.identity.launchWebAuthFlow({ interactive: true, url: authURL, }); } function getAccessToken() { return authorize().then(validate);
webRequest.onBeforeRequest
middle; font: bold 10pt 'Segoe UI', "Helvetica", "Arial";">Blocked</text> </svg> `; function listener(details) { const redirectUrl = `data:image/svg+xml,${encodeURIComponent(image)}`; return { redirectUrl }; } browser.webRequest.onBeforeRequest.addListener( listener, { urls: [pattern], types: ["image"] }, ["blocking"], ); ``` Here's another version: ```js function randomColor() { return `#${Math.flo
JavaScript reference
ty - NaN - undefined ### Function properties - eval() - isFinite() - isNaN() - parseFloat() - parseInt() - decodeURI() - decodeURIComponent() - encodeURI() - encodeURIComponent() - escape() - unescape() ### Fundamental objects - Object - Function - Boolean - Symbol ### Error objects - Error - AggregateError - EvalError - RangeError - ReferenceError - SuppressedError - SyntaxError - TypeError - URIError - Inte
Deprecated and obsolete features
two, or three octal digits) are deprecated in string and regular expression literals. - The escape() and unescape() functions are deprecated. Use encodeURI(), encodeURIComponent(), decodeURI(), or decodeURIComponent() to encode and decode escape sequences for special characters. ### Statements The [`with`](/docs/Web/JavaScript/Reference/Statements/with) statement is deprecated and unavailable in strict mode. Init
Standard built-in objects
—directly return their results to the caller. - eval() - isFinite() - isNaN() - parseFloat() - parseInt() - decodeURI() - decodeURIComponent() - encodeURI() - encodeURIComponent() - escape() - unescape() ### Fundamental objects These objects represent fundamental language constructs. - Object - Function - Boolean - Symbol ### Error objects Error objects are a special type of fundamental object. They include t