Javascript examples for DOM HTML Element:Input URL
Input URL autocomplete Property - Return the state of autocompletion:
<!DOCTYPE html> <html> <body> <form action="#"> Homepage: <input type="url" id="myURL" name="website" autocomplete="on"> <input type="submit"> </form>//from w w w .j av a2 s . co m <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() { var x = document.getElementById("myURL").autocomplete; document.getElementById("demo").innerHTML = x; } </script> </body> </html>