Code
Execute
<!DOCTYPE html> <html> <body> <form action="auto.htm" method="get" autocomplete="on" onsubmit="alert('Submitted!');return false;"> First name:<input type="text" name="fname"><br> E-mail: <input type="email" name="email"><br> <input type="submit"> </form> </body> </html>
Result