开发者

Update META tag value from JQuery

开发者 https://www.devze.com 2023-01-19 07:56 出处:网络
开发者_如何学运维I have a web page that is using the following META tag: <META HTTP-EQUIV=\"refresh\" CONTENT=\"15;URL=/myPage.aspx\" />

开发者_如何学运维I have a web page that is using the following META tag:

<META HTTP-EQUIV="refresh" CONTENT="15;URL=/myPage.aspx" />

This page has a textbox and a drop down list. When the user changes either of these fields, I am hitting a web service via JQuery. I would like to append the values of these fields as query string values to the URL in the META tag shown above. Is there a way to do this from JQuery? If so, how?

Thank you!


You should just use window.location.replace("http://stackoverflow.com"); to redirect, and setTimeout() if you need to set a timer.

0

精彩评论

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