开发者

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

开发者 https://www.devze.com 2023-03-22 19:41 出处:网络
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 t

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

精彩评论

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