开发者

Issue with jQuery ui dialog widget (change url of page)

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"));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜