Basic PHP Programming Question:
Download Job Interview Questions and Answers PDF
How can we send mail using JavaScript?
Answer:
No. There is no way to send emails directly using JavaScript.
But you can use JavaScript to execute a client side email program send the email using the "mailto" code. Here is an example:
function myfunction(form)
{
tdata=document.myform.tbox1.value;
location="mailto:mailid@domain.com?subject=...";
return true;
}
But you can use JavaScript to execute a client side email program send the email using the "mailto" code. Here is an example:
function myfunction(form)
{
tdata=document.myform.tbox1.value;
location="mailto:mailid@domain.com?subject=...";
return true;
}
Download PHP Interview Questions And Answers
PDF
Previous Question | Next Question |
When are you supposed to use endif to end the conditional statement? | What is the functionality of the function strstr and stristr? |