Window.open in js opens a new page

  • 2020-03-30 03:41:30
  • OfStack

<!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()"> Click to enter 1</a> 
  <a href="#" rel="external nofollow" rel="external nofollow" onclick="open2()"> Click to enter 2</a> 
</body> 
</html>

Related articles: