JS跳转页面后地址栏隐藏IP和端口号
2017-12-20 12:46
246 查看
1、浏览首页:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<div> </div>
</body>
</html>
<script src="jquery-1.8.3.min.js"></script>
<script>
$(function () {
window.location.href = "HtmlPage2.html";
})
</script>
2、iframe页面链接地址
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<div style="width:100%; height:100%">
<iframe id="Iframe1" frameborder="0" scrolling="no" src="http://47.95.9.198:99/phpGujia/index.php" mce_src="http://91gujia.com/"></iframe>
</div>
</body>
</html>
<script src="jquery-1.8.3.min.js"></script>
<script>
$(function () {
//var height = $(window).height();
//var width = $(window).width();
var height = document.documentElement.clientHeight;
var width = document.documentElement.clientWidth;
$('#Iframe1').attr('height', height);
$('#Iframe1').attr('width', width);
$(window).resize(function () {
var height = document.documentElement.clientHeight;
var width = document.documentElement.clientWidth;
$('#Iframe1').attr('height', height);
$('#Iframe1').attr('width', width);
});
});
</script>浏览器访问的时候隐藏了下面这地址:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<div> </div>
</body>
</html>
<script src="jquery-1.8.3.min.js"></script>
<script>
$(function () {
window.location.href = "HtmlPage2.html";
})
</script>
2、iframe页面链接地址
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<div style="width:100%; height:100%">
<iframe id="Iframe1" frameborder="0" scrolling="no" src="http://47.95.9.198:99/phpGujia/index.php" mce_src="http://91gujia.com/"></iframe>
</div>
</body>
</html>
<script src="jquery-1.8.3.min.js"></script>
<script>
$(function () {
//var height = $(window).height();
//var width = $(window).width();
var height = document.documentElement.clientHeight;
var width = document.documentElement.clientWidth;
$('#Iframe1').attr('height', height);
$('#Iframe1').attr('width', width);
$(window).resize(function () {
var height = document.documentElement.clientHeight;
var width = document.documentElement.clientWidth;
$('#Iframe1').attr('height', height);
$('#Iframe1').attr('width', width);
});
});
</script>浏览器访问的时候隐藏了下面这地址:
47.95.9.198:99/phpGujia/index.php显示的是首页地址;
相关文章推荐
- 项目访问index.html,默认跳转到login.jsp页面,隐藏地址栏每次显示请求路径和参数,定个在域名不变
- JS实现页面跳转 浏览器地址栏保持不变
- JS实现页面跳转 浏览器地址栏保持不变
- js用POST方式页面跳转,避免在地址栏中显示传递参数
- js新打开页面隐藏地址栏
- 域名ip自动跳转 跳转指定页面的js
- js中跳转新页面隐藏路径参数问题
- JS实现页面跳转 浏览器地址栏保持不变
- js实现页面刷新和跳转(指定时间)
- php 页面跳转(不使用js)
- js页面跳转的6种方法
- js关闭当前页面跳转新页面
- js实现左树在当前页面不同位置跳转
- js跳转页面常用方法总结
- jquery mobile页面跳转后js不执行的问题
- jquery mobile开发中页面跳转后js不执行的问题
- js跳转页面到指定框架
- js 有框架页面跳转(target)三种情况下的应用
- 使用JS实现页面内跳转的两种方式
- js点击button按钮跳转到页面代码