duancaozen6066 2014-02-17 14:48
浏览 34
已采纳

按钮单击以进行电子邮件验证未打开新窗口

i am trying to have a functionality , where our app send verification email to confirm user to activate his/her online registration. i have below html code , where i want to open up a new window , when user clicks on "confirm email address" button.

<button id="emailVerificationBtn" onclick="javascript:openEmailVerificationPage('http://localhost:8080/myapp/tokens.html')"/>

and onclick, i am calling javascript to open up a new window, then after the verification gets completed.

       <script>
            function openEmailVerificationPage(url) {
                document.getElementById("eamilVerificationForm").action = url;
                window.open('', "TheWindow");
                document.getElementById("eamilVerificationForm").submit();
            }
        </script>

i have tested this html in browser , it was working fine, but when it was send to user email, and user tries to click the button, the new window is not opening up. it is not working inside an email. i have check in ie, Mozilla, chrome with pop-up blocker disabled. but i am facing button click problem within the email.

EDIT - my form

<form  id="eamilVerificationForm" method="post" target="TheWindow">
  • 写回答

1条回答 默认 最新

  • douchuose2514 2014-02-17 16:38
    关注

    Is not necessary use javascript...

    <a id="button_validation" href="http://www.ururlvalidation.com" target="_blank">Validate email</a>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大