如何在加载新页面时显示Pop并显示ok按钮

时间:2014-05-03 07:22:44

标签: javascript jquery html

我正在使用以下页面在成功当前页面时重定向下一页。

如何在加载新页面时显示弹出窗口并单击确定按钮它将移至下一页。

如何实现这一目标?

     <script type="text/javascript">

   $(document).ready(function() {  //or  $(window).load(function(){ 
    $('#myModal').reveal($(this).data());
});

    </script>

           <div id="myModal" class="reveal-modal">
                <h1>Reveal Modal Goodness</h1>
                <p>This is a default modal in all its glory, but any of the styles here can easily be changed in the CSS.</p>
                <inputbutton name=ok value="www.mpage.com"/>
            </div>

1 个答案:

答案 0 :(得分:-1)

使用jQuery可能是最快的方法。

您可以使用jQuery AJAX函数收集表单数据然后将其发送到服务器(NetTuts +在here上有一个旧的,但仍然相关的教程),然后使用模态库(例如。{ {3}})实际显示模态。