纯html的重定向。

摘要:
纯html网页重定向与跳转javaScript跳转方法一:window.location="http://www.baidu.com";方法二:document.location="http://www.baidu.com";(带进度条)˂html

纯html网页重定向与跳转

javaScript 跳转
方法一:
<script language="javascript">
window.location = "http://www.baidu.com";
</script>
方法二:
<script language="javascript">
document.location = "http://www.baidu.com";

</script>

(带进度条)
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<title>跳转到baidu.com</title>
</head>
<body>
<form name=loading>
<P align=center><FONT face=Arial color=#0066ff size=2>loading...</FONT>
<INPUT style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder;

PADDING-BOTTOM: 0px; COLOR: #0066ff; BORDER-TOP-style: none; PADDING-TOP: 0px;

FONT-FAMILY: Arial; BORDER-RIGHT-style: none; BORDER-LEFT-style: none;

BACKGROUND-COLOR: white; BORDER-BOTTOM-style: none"
size=46 name=chart>
<BR>
<INPUT style="BORDER-RIGHT: medium none; BORDER-TOP: medium none;

BORDER-LEFT: medium none; COLOR: #0066ff; BORDER-BOTTOM: medium none;

TEXT-ALIGN: center" size=47 name=percent>
<script language="javascript">
var bar=0
var line="||"
var amount="||"
count()
function count(){
bar=bar+2
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99){
setTimeout("count()",100);
}else{
window.location = "http://www.baidu.com/";
}
}
</script>
</P>
</form>
</body>
</html>
纯html页面跳转
<head>
<meta http-equiv="refresh" content="10; url=http://www.baidu.com">
</head>

免责声明:文章转载自《纯html的重定向。》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇elk集群配置并破解x-packCharles的使用下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

spring boot 重定向

/** * 测试各个html文件用。 * @param model * @return */ @RequestMapping("home") public String home(RedirectAttributes model) { model.addAttribute("...

JavaScript私有方法

  some concepts: Java is from Sun Microsystem Inc., and JavaScript, called LiveScript before, is from Netscape; those two languages has little relationship with each other. Just t...

iOS-WKWebView的使用

参考文章:http://www.cocoachina.com/ios/20180831/24753.html WK时苹果在iOS8.0之后推出的控件,相比于UIWebView: 内存消耗少; 解决了网页加载时的内存泄漏问题; 与HTML页面的交互更方便; 总之,其性能比UIWebView好很多。 使用时,首先要添加头文件: #import <We...

HTML页面跳转的5种方法

下面列了五个例子来详细说明,这几个例子的主要功能是:在5秒后,自动跳转到同目录下的hello.html(根据自己需要自行修改)文件。1) html的实现   1 2 3 4 5 6 <head> <!-- 以下方式只是刷新不跳转到其他页面 --> <metahttp-equiv="refresh" content...

Nodejs介绍、安装及简单使用

打开Nodejs英文网:https://nodejs.org/en/ 中文网:http://nodejs.cn/ 我们会发现这样一句话: 翻译成中文如下: Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境。 Node.js 使用了一个事件驱动、非阻塞式 I/O 的模型,使其轻量又高效。 Node.js 的包管理器...

Javascript之三种按钮点击事件

学习Javascript必须要先掌握基本的事件方法和语法,这些都是我们学过的也是最基本的。以前忘了总结,所以现在回顾,综合地总结一下,温故而知新。 Javascript有三种按钮点击事件,分别为alert、confirm和prompt,简单介绍一下它们的基本方法。 1. alert是弹出警告框,在文本里面加入 就可以换行。 2. confirm弹出确认框,...