使用html将值传递给onclick上的javascript函数。 [英] passing values to javascript function on onclick using html.

查看:80
本文介绍了使用html将值传递给onclick上的javascript函数。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写的html表单如下 -

I write html form like -

<body>
    <form id="form1"  runat="server">       
        
            Name            
            <input id="name" type="text" name="userName" />         
            Email            
            <input id="email" type="text" name="userEmail" />        
            Message            
            <textarea id="message" cols="20" rows="4" name="userMessage"></textarea>        
            <input id="sendMessage" type="button" value="Submit" />    
    </form>
</body>



现在我要写fu使用smtp crenditial发送电子邮件的信息。当我双击按钮onclick事件在同一页面上生成没有生成文件事件后面的代码以及如何使用javascript.please发送参数到该函数



任何人都帮帮我。


Now I want to write fuction for sending email using smtp crenditials.when i double click on button onclick event is generated on same page no code behind file event is generated and how to send parameters to that function using javascript.please

Anyone help me.

推荐答案





你能不能通过本文?可能对你有帮助。





http://www.alex-arriaga.com/how-to-send -an-email-using-javascript-jquery-and-the-mail-client-it-includes-a-php-example / [ ^ ]







http://stackoverflow.com/questions/7381150/send-email-with-javascript [ ^ ]



谢谢,

Lijo
Hi,

Can you please go through this article? Might be helpful for you.


http://www.alex-arriaga.com/how-to-send-an-email-using-javascript-jquery-and-the-mail-client-it-includes-a-php-example/[^]



http://stackoverflow.com/questions/7381150/send-email-with-javascript[^]

Thanks,
Lijo


这篇关于使用html将值传递给onclick上的javascript函数。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆