如何让JSP页面在屏幕上停留一段时间(如5秒)后再转入另一页??在线等!!!

dongdongmaster 2004-07-29 05:49:39
如何让JSP页面在屏幕上停留一段时间(如5秒)后再转入另一页??在线等!!!
...全文
283 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
dongdongmaster 2004-07-29
  • 打赏
  • 举报
回复
好的好的,来者有分!!!!
dongdongmaster 2004-07-29
  • 打赏
  • 举报
回复
OK,谢谢,现在结贴!!
gjd111686 2004-07-29
  • 打赏
  • 举报
回复
META

--------------------------------------------------------------------------------

Description

Provides information about an HTML document to browsers, search engines, and other applications

Syntax
<META
CONTENT=description
HTTP-EQUIV=response
NAME=text
TITLE=text
URL=url
>



Parameter Description
CONTENT=description Specifies meta-information to be associated with the given name or HTTP response header.
HTTP-EQUIV=response Used to bind the CONTENT of the element to an HTTP response header. This information is then used based on the application reading the header.
NAME=name Specifies the name of the control, bookmark, or application.
TITLE=text Used to provide advisory information.
URL=url If a URL is specifies, the URL will be loaded after the specified time has elapsed.

Remarks

This element may only be used within the HEAD tag.

The start tag is required, and the end tag is optional.

The value of the CONTENT= attribute depends on the HTTP-EQUIV= attribute. The following lists some of these values. HTTP-EQUIV CONTENT
REFRESH delay[;url]
The delay is the number of seconds that the browser waits before reloading a document. The optional url specifies the document to reload. If no url is given, the browser reloads the current document.

Content-Type text/html; CHARSET=character-set
The character-set specifies one of the character set aliases listed in HTML Character Sets.



Examples

The following example sets the character set for the document.

<META HTTP-EQUIV="Content-Type"
CONTENT="text/html; CHARSET=Windows-1251">

The following example causes the browser to reload the document every two seconds.

<META HTTP-EQUIV="REFRESH" CONTENT=2>

The following example causes the browser to load the new document, http://www.sample.com/next.htm, after a five second delay.

<META HTTP-EQUIV="REFRESH" CONTENT="5; URL=http://www.sample.com/next.htm">

The following example causes the server to include the given content in the HTTP response to a GET or HEAD request for the document.

<META HTTP-EQUIV="Expires"
CONTENT="Tue, 04 Dec 1996 21:29:02 GMT">
<meta http-equiv="Keywords" CONTENT="HTML, Reference">
<META HTTP-EQUIV="Reply-to"
content="anybody@microsoft.com">

The HTTP response includes the following header fields.

Expires: Tue, 04 Dec 1996 21:29:02 GMT
Keywords: HTML, Reference
Reply-to: anybody@microsoft.com

Scripting Object

META

King6860 2004-07-29
  • 打赏
  • 举报
回复
也可以用JSCRIPT 控制。使用 SETTIMEOUT!!
Weilibo 2004-07-29
  • 打赏
  • 举报
回复
就是这样做,没有问题!
dongdongmaster 2004-07-29
  • 打赏
  • 举报
回复
好的,我试一下
free111 2004-07-29
  • 打赏
  • 举报
回复
<meta http-equiv="Refresh" content="0; URL=index.jsp">把0改成你想停留的时间

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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