control

control email :

The email type is used for input fields that should contain an e-mail address. Depending on browser support, the e-mail address can be automatically validated when submitted. Some smartphones recognize the email type, and adds ".com" to the keyboard to match email input.

syntax <input type="email" name="name" > 

example :

Example
<input type="email"   id="inputEmail" >    : آدرس ایمیل خود را وارد نمایید 
 <br />
<input type="button" id="btn1" value="show email" onclick="showEmail()" />
 <br />
<div id="MyDiv"> </div>

<script type="text/javascript">
    function showEmail() {
         document.getElementById("MyDiv").innerHTML = "Your Email is : " +  document.getElementById("inputEmail").value;
      }
</script>
output
    : type your email address

Copyright 2014. All rights reserved.