BOM属性
来源:互联网 发布:力度exp5000编程方法 编辑:程序博客网 时间:2024/06/01 09:41
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script>
//window.navigator.userAgent : 浏览器信息
//alert( window.navigator.userAgent )
if ( window.navigator.userAgent.indexOf('MSIE') != -1 ) {
alert('我是ie');
} else {
alert('我不是ie');
}
</script>
</head>
<body>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script>
//window.location : 地址
/*
window.location.href = window.location内容
window.location.search = url?后面的内容
window.location.hash = url#后面的内容
*/
//alert( window.location );
//alert( window.location.href );//地址
//alert( window.location.search );
//alert( window.location.hash );
</script>
</head>
<body>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script>
window.status = 'maiov';
//alert( window.status );
</script>
</head>
<body>
</body>
</html>
- BOM属性
- BOM的属性和方法
- BOM相关方法和属性
- BOM的一些常用方法和属性
- JavaScript BOM的属性及方法
- DOM、BOM相关方法及属性
- BOM的使用与常用属性
- DOM、BOM相关方法及属性
- BOM
- BOM
- BOM
- BOM
- bom
- BOM
- Bom
- BOM
- BOM
- BOM
- java 使用全局过滤器Filter之后 防止css文件与js文件被过滤
- leetcode single Number
- python中*args **kwargs的使用
- logrotate使用
- Spring定时任务的几种实现
- BOM属性
- Java中使用Jedis操作Redis
- uva 340
- light oj 1094 Farthest Nodes in a Tree(树的直径模板)
- WPF 数据验证失效 Validation Fail on TabControl
- SVN
- js使用ajax发送请求,后台用RESTful服务
- JDBC -访问存储过程
- hdu 1011 Starship Troopers(树上dp)