Ads Inside Post

Search in This Blog

Send email using javascript

<html>
<script>
function mailpage(){
    var a=encodeURIComponent("http://agalaxycode.blogspot.in/");
    mail_str="mailto:?subject=This is interest for you: ";
    mail_str+="&body=Find interesting code in javascript: ";
    mail_str+=". %0A%0AYou can view it at, "+a;
    location.href=mail_str;
}
mailpage();
</script>
</html>