简体   繁体   English

单击到jQuery弹出按钮时重定向到另一个页面

[英]redirect to another page when clicking to jquery popup button

I have used jquery popup to show the messages in my webpage.Now I want to redirect to another page when clicking button of jquery popup.I dont know how to do that. 我已经使用jquery弹出窗口在网页中显示消息了,现在我想在单击jquery弹出按钮时重定向到另一个页面,我不知道该怎么做。

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
<link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css"
    rel="stylesheet" type="text/css" />
<script type="text/javascript">
    function ShowPopup(message) {
        $(function () {
            $("#dialog").html(message);
            $("#dialog").dialog({
                title: "Mandirdarsan Warning",
                buttons: {
                    Ok: function () {
                        $(this).dialog('ok');
                    }
                },
                modal: true
            });
        });
    };
</script>
Ok: function () {
  window.location="newurl";
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 单击按钮时如何在另一个页面中弹出引导警报 - How to make bootstrap alert popup in another page when clicking on a button 单击子导航标题上的按钮时如何重定向到另一个页面? - How to redirect to another page when clicking the button on a subnav header? 单击后退按钮重定向到另一个页面 - Redirect to another page on clicking the back button jQuery:单击按钮导航到另一个页面 - jQuery: navigate to another page by clicking a button 如何通过单击弹出窗口中的按钮将打开弹出窗口的窗口重定向到新页面? - How do I redirect the window that opened a popup window to a new page by clicking a button in the popup window? 退出弹出式重定向,但仅在退出时执行,而不是单击页面上的任何其他html重定向按钮 - Exit Popup Redirect but only execute on exit not on clicking any other html redirect button on page 单击另一个弹出事件监听器时关闭弹出窗口 - Close popup when clicking on another popup eventListener 单击另一个页面上的按钮时如何在页面上创建一个div - How to create a div on a page when clicking a button on another page 单击页面上的按钮时,jquery移动页面退出 - jquery mobile page exits when clicking a button on the page 单击按钮时反应重定向 - React Redirect when clicking button
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM