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条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 用mysql做一个高校工资管理系统
      • ¥21 Multisim设计用三端集成稳压器设计稳压电路
      • ¥15 tp6,在iframe里的网址通过获取url参数失败
      • ¥15 打开opendaylight查看拓扑,为什么直接就显示了两个Switch,在mininet配置了一个topo,这两个Switch还在
      • ¥15 无法远程连接pgsql
      • ¥15 建立DLNM模型时显示基础基矩阵不一致
      • ¥15 贝叶斯重复测量方差分析
      • ¥15 c#五子棋为什么悔棋后全部的棋子都没了 但是数组中的棋子还在只是悔棋后剩余的棋子在窗口没显示
      • ¥15 c#如何将到毫秒的时间字符串转换成byte[8]
      • ¥100 能不能帮帮我,这个数据库我一直做不好