Web API URL.password Property Last Updated : 12 Jul, 2022 Comments Improve Suggest changes Like Article Like Report The Web API URL.password property returns a USVString containing the password specified before the domain name of the URL. A USVString is a sequence of Unicode scalar values. Syntax: var str = URL.password Return Value: This property returns a USVString containing the password specified before the domain name of the URL. Example 1: HTML <!DOCTYPE html> <html> <body> <h1>GeeksforGeeks</h1> <button onclick="get()" x='15' y='30'> Click on Me! </button> <script type="text/javascript"> function get() { var url = new URL( 'https://password:[email protected]/href#ExampleHash'); console.log("password of current URL is :", url.password); } </script> </body> </html> Output: Example 2: HTML <!DOCTYPE html> <html> <body> <h1>GeeksforGeeks</h1> <div id="abc"></div> <button onclick="get()" x='15' y='30'> Click on Me! </button> <script type="text/javascript"> function get() { var url = new URL( 'https://password:[email protected]/href#ExampleHash'); a = document.getElementById("abc"); a.innerHTML = "password of current URL is : " + url.password; } </script> </body> </html> Output: Supported Browsers: Safari 10Opera 19Chrome 32Edge 12Firefox 26 Comment More infoAdvertise with us Next Article Web API URL.password Property T taran910 Follow Improve Article Tags : Web Technologies HTML HTML-DOM HTML-Property Similar Reads Web API URL.username Property The Web API URL.username property returns a USVString containing the username specified before the domain name of the URL Syntax: var str = URL.username Return Value: This property returns a USVString containing the username specified before the domain name of the URL. Example 1: HTML <!DOCTYPE h 1 min read HTML | DOM Input Password value Property The DOM Input Password value Property is used to set or return the value of the value attribute of a Password Field. The Value attribute specifies the initial value of the input Password Field. The value may be a single address or a list of address. Syntax: It is used to return the value property.pa 2 min read HTML | DOM Input Password required Property The DOM Input Password required Property is used to set or return whether Input Password Field should be filled or not when submitting the form. This property is used to reflect the HTML required attribute. Syntax: It is used to return the required property.passwordObject.requiredIt is used to set t 2 min read jQWidgets jqxPasswordInput rtl Property jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxPasswordInput is a jQuery widget that enables the input field passwords with nice visual feedback about the 2 min read HTML | DOM Input Password type Property The DOM Input Password type Property is used for returning which type of form element a password field is. This property will always return" password" for an input password field. Syntax: passwordObject.type Return Value: It returns a string value which represent the type of form element the passwor 1 min read Like