js中window.open打开一个新的页面


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<title>Insert title here</title> 
<script type="text/javascript"> 
/* 打开同一个新的页面,不会再次打开新页面 */ 
function open1(){ 
  window.open("html01.html","aaa"); 
} 
function open2(){ 
  window.open("html02.html","aaa"); 
} 
</script> 
</head> 
<body> 
  <a href="#" rel="external nofollow" rel="external nofollow" onclick="open1()">点击进入1</a> 
  <a href="#" rel="external nofollow" rel="external nofollow" onclick="open2()">点击进入2</a> 
</body> 
</html>

js中直接声明一个对象的方法
varctrl={init:function(){this.a();this.b();},name:"zs",a:function(){alert("aa");},b:function(){alert("bb");}};varstr=ctrl.name;console.info(str);//zsctrl.init();//弹出aa,bb

html文档中的location对象属性理解及常见的用法
关于location对象的简单理解:1.location对象中涵盖了当前页面(本页面)或者更直接的说,是当前加载的这个html文档的url信息2.location对象作为window对象

javascript使用window.open提示“已经计划系统关机”的原因
javascript调用window.open打开网站的时候,IE浏览器下报错:已经计划系统关机,提示如图:百度找了下都是莫名其妙的自动好了,可以查看这个帖子:诡