【问题标题】:how to redirect aspx to another aspx using time [duplicate]如何使用时间将aspx重定向到另一个aspx [重复]
【发布时间】:2013-12-19 05:20:46
【问题描述】:

我必须创建一个网站,用户可以在其中输入网址并显示只有一张图片的默认页面。 我需要在 2 秒后使用 time 选项重定向到 home.aspx。我不能使用任何图像、按钮或其他任何东西。

【问题讨论】:

  • 你可以在javascript中使用setTimeout
  • 你试过搜索“html方向”吗?

标签: asp.net


【解决方案1】:

您也可以使用 javascript。

window.location.href = "http://linkto/newpage.aspx";
/*
 * write it in a function which you will call; hint: onLoad, setTimeOut
 */

否则,您可以使用此元标记

<meta http-equiv="refresh" content="time;url=newpage.aspx" />

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多