I have a link that its href is set.I 've assigned jQuery ui dialog to it,so after clicking this link a confirmation dialog box opens.I the page url change to link h开发者_运维知识库ref attribute if the user click on 'Ok' button of confirmation dialog box.
How can i change location of window with jQuery?
You don't need jQuery to do that, you can use window.location:
window.location.replace($("#yourLinkId").attr("href"));
精彩评论