For sending mail on click of button i am using following code:
<html>
<head><title>Test</title></head>
<body><center>
<h4>Register for future updates</h4></center>
<br><br><br>
<center>
<form method="get" action="mailto:xyz@gmail.com?subject=User%20Active%20"+mailId>
Enter your e-mail id:
<input type="text" name="mailId" size="30"/><br><br>
<input type="submit" value="Register">
</form>
</center>
</body>
</html>
Now when run this code and click on Register button, instead of sending mail, its opening mail client. How can i avoid opening of this mail client and directly the send mail.
I googled and also checked with javascript forums, but couldnt get proper help. I apologize for OT.
Any help is highly appreciated