user3247426
user3247426

Reputation: 127

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.

<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>

Upvotes: 0

Views: 2490

Answers (1)

mplungjan
mplungjan

Reputation: 178411

Ok: function () {
  window.location="newurl";
}

Upvotes: 1

Related Questions