是否可以有一个链接到不同的HTML页面而不点击的HTML链接? [英] Is it possible to have an html link that links to a different html page without clicking?

查看:195
本文介绍了是否可以有一个链接到不同的HTML页面而不点击的HTML链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些python项目的自动生成的html文档。自动生成时,主页面在/manual/_build/html/index.html内创建为index.html。我想在根文件夹中有一个链接到index.html的manual.html。我可以在manual.html中添加以下内容:

I have some autogenerated html documentation for a python project. When autogenerating this the 'main page' is created as index.html inside /manual/_build/html/index.html. I want to have a manual.html in the root folder that links to the index.html. I can put the following in manual.html:

<a href="manual/_build/html/index.html">link</a>

这是一个指向index.html的可点击链接。我想直接发送到index.html而不必点击任何东西。这可能吗?

which makes a clickable link to index.html. I would like to be send directly to index.html without having to click on anything. Is this possible?

谢谢,
Niek

Thanks, Niek

推荐答案

将以下内容添加到您的HTML < head> 标记中:

Add the following to your HTML <head> tag:

<meta HTTP-EQUIV="REFRESH" content="0; url=index.html">

这篇关于是否可以有一个链接到不同的HTML页面而不点击的HTML链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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