开发者

How can i make an ASPX page to be viewed for certain amount of time and then moving to other page

开发者 https://www.devze.com 2023-01-31 00:31 出处:网络
I am having a change password page in that when the user cha开发者_JAVA技巧nge his password and click on submit i will show a message and will redirect to main form. But the text which i like to displ

I am having a change password page in that when the user cha开发者_JAVA技巧nge his password and click on submit i will show a message and will redirect to main form. But the text which i like to display is not displaying. What i need is i would like to have the page in the same form for few amount of time and then redirect to the desired one. Any idea please

I use the following code

 <script type="text/javascript">function LoadPage()

    {

   var v =setTimeout("MovePage()",5000); //will call the MovePage() function after 5 seconds

}
  function MovePage()

 {

      location.href='/FedData/newRoutingNumbervalidator.aspx';

      }
</script>

and for button i use the following OnClientClick="javascript:LoadPage();" this doesn't work for me


You can use javascript setTimeout..

exa: setTimeout(function(){window.location.href = <YOUR_NEW_URL>}, 1000) //1000 ms


See if this helps you:

How to redirect to another webpage in JavaScript/jQuery?

How to manage a redirect request after a jQuery Ajax call

0

精彩评论

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