怎样从一个页面自动跳到另一个页面?

sstower 2002-12-24 01:38:41
如题
...全文
73 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
jzsh2000 2002-12-24
  • 打赏
  • 举报
回复
当然可以:)
5秒钟之后刷新当前页面:
<meta http-equiv="refresh" content="5">

5秒钟之后转到别的页面:
<meta http-equiv="refresh" content="5;URL=index2.htm">
zxhong 2002-12-24
  • 打赏
  • 举报
回复
当然可以
possible_Y 2002-12-24
  • 打赏
  • 举报
回复
window.location="upload/ll.asp"
可以用相对路径
sstower 2002-12-24
  • 打赏
  • 举报
回复
能不能让自己的页面重新刷新一下或是从一个页面转道另一个页面,也就是url后面用不用域名,而直接跟页面文件,如htm、asp等可以不?
jzsh2000 2002-12-24
  • 打赏
  • 举报
回复
在<head></head>之间加入以下代码,5秒钟后转到163.com
<meta http-equiv="refresh" content="5;URL=http://www.163.com">
flyycyu 2002-12-24
  • 打赏
  • 举报
回复
<c:redirect url="newurl">

jstl 的做法!

javascript:

onload="location.href='newurl'"

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧