For smart Primates & ROBOTS (oh and ALIENS ).

Blogroll

Friday, March 13, 2015

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>

Share:

0 comments:

Post a Comment

Multiple attribute passing in querySelectorAll

Multiple attribute passing in querySelectorAll     Here I am demonstrating code to how to pass multiple attributes in querySelectorAll. <...

Ads Inside Post

Powered by Blogger.

Arsip

Blog Archive