Input URL autocomplete Property - Return the state of autocompletion: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input URL

Description

Input URL autocomplete Property - Return the state of autocompletion:

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials