Input Email autocomplete Property - Get the state of autocompletion: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Email field

Description

Input Email autocomplete Property - Get the state of autocompletion:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<form action="#">
E-mail: <input type="email" id="myEmail" name="email" autocomplete="on">
<input type="submit">
</form>/* www . j av a2s  .com*/

<button onclick="myFunction()">Test</button>

<p id="demo"></p>

<script>
function myFunction() {
    var x = document.getElementById("myEmail").autocomplete;
    document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>

Related Tutorials