<input id="type" value="1"> 跳转中...<br>
2017-10-24 10:53
447 查看
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="http://localhost:8080/CloudPlatform/">
<title>跳转页面</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<input id="type" value="1">
跳转中...<br>
</body>
<script type="text/javascript">
function myLocation(){
var input = document.getElementById("type");
var value = input.value;
if(value && value=="2"){
window.top.location.href="login.html";
}else{
window.top.location.href="index.html";
}
}
myLocation();
</script>
</html>
<html>
<head>
<base href="http://localhost:8080/CloudPlatform/">
<title>跳转页面</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<input id="type" value="1">
跳转中...<br>
</body>
<script type="text/javascript">
function myLocation(){
var input = document.getElementById("type");
var value = input.value;
if(value && value=="2"){
window.top.location.href="login.html";
}else{
window.top.location.href="index.html";
}
}
myLocation();
</script>
</html>
相关文章推荐
- input file控件限制上传文件类型 网页上添加一个input file HTML控件: 1 <input id="File1" type="file" /> 默认是这样的,所有文件类
- Jquery 获得<input type="text" id="test">中的value
- <input id="pjdxid_1" type="hidden" value="${fwpj.CPjdxId }" />中hidden的用法
- html中类似 <input type=“text” name="username[]" value="1">中的方括号的含义
- 关于ViewState的问题 <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="之后有一大串乱码
- 关于Html5中<input type="number" name="points" min="1" max="10" />只能输入整数的问题
- <input type="text">中的value为null或"",有何区别
- <input type="text" name="" id=""/>中name和id的区别
- <input type="text" value="">实现输入提示
- 关于ViewState的问题 <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="之后有一大串乱码
- 使用<input type="text" value=<%=str%>>出现取值不全的问题
- <form action="get.php" method="post" id="tform"> <input type="text" name="one"> <a href="jav
- <input type="hidden" id="haha" name="wang" value="xiaodong" />
- JS获取jQuery获取当前<input type="text" />的value--通过测试了
- ID和Name的问题------写个<input type="hidden">在后台取不到值
- <input type="text"> 的document.getElementById("").value和document.getElementById("").getAttribute("value")不相同
- 清空页面上<input type="text" id="inputtext" runat="server">的值的方法
- <input id="File_Audio" type="file" /> 一步到位上传图片、音频等文件
- <input type="submit" name="Submit" value="提交" />添加网站跳转的两种方式小结
- 使用<input type="text" value=<%=str%>>出现取值不全的问题