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.

            function openEmailVerificationPage(url) {
                document.getElementById("eamilVerificationForm").action = url;
                window.open('', "TheWindow");

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>
    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥15 streamingtool
  • ¥15 MATLAB图像问题
  • ¥20 树莓派5做人脸情感识别与反馈系统
  • ¥15 selenium 控制 chrome-for-testing 在 Linux 环境下报错 SessionNotCreatedException
  • ¥15 使用pyodbc操作SQL数据库
  • ¥15 MATLAB实现下列
  • ¥30 mininet可视化打不开.mn文件
  • ¥50 C# 全屏打开Edge浏览器
  • ¥80 WEBPACK性能优化
  • ¥30 python拟合回归分析