从HTML页面重定向 [英] Redirect from a HTML page

查看:136
本文介绍了从HTML页面重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能建立一个基本的HTML页面以便在重载时重定向到另一个页面?

解决方案

尝试使用:

 < meta http-equiv =refreshcontent =0; url = http://example.com// > 

注意:将它放在头部。



另外,对于旧版本的浏览器,如果您添加快速链接以防万一刷新不正确:

< p>< a href =http://example.com/>重定向< / a>< / p> $ b

/ p>

重定向



这仍然允许您通过额外的点击来到达目的地。


Is it possible to set up a basic HTML page to redirect to another page on load?

解决方案

Try using:

<meta http-equiv="refresh" content="0; url=http://example.com/" />

Note: Place it in the head section.

Additionally for older browsers if you add a quick link in case it doesn't refresh correctly:

<p><a href="http://example.com/">Redirect</a></p>

Will appear as

Redirect

This will still allow you to get to where you're going with an additional click.

这篇关于从HTML页面重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆