js中window.open打開一個新的頁面
更新時間:2014年08月10日 09:17:08 投稿:whsnow
js中window.open打開一個新的頁面,其實它的參數(shù)有很多,在本例沒有涉及到,感興趣的朋友可以研究下
<!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>
相關(guān)文章
javascript基礎(chǔ)之數(shù)據(jù)類型詳解
這篇文章主要介紹了如何理解JavaScript中的數(shù)據(jù)類型,幫助大家更好的學習JavaScript,感興趣的朋友可以了解下2021-11-11
深入解析contentWindow, contentDocument
沒有永恒的技術(shù)只有需求,沒有好說的客戶只有無奈的開發(fā)者,如果iframe的出現(xiàn)是一個錯誤的話,iframe里邊在來一個iframe那是錯上加錯,神話沒有在遠古的塵囂中消失,卻在懷具的今天不斷上演2013-07-07
javascript scrollLeft,scrollWidth,clientWidth,offsetWidth 完全
javascript scrollLeft,scrollWidth,clientWidth,offsetWidth 完全詳解,實例修正版。2009-07-07
Javascript常用運算符(Operators)-javascript基礎(chǔ)教程
Javascript常用運算符(Operators)-javascript基礎(chǔ)教程...2007-12-12
JavaScript fontcolor方法入門實例(按照指定的顏色來顯示字符串)
這篇文章主要介紹了JavaScript fontcolor方法入門實例,fontcolor方法用于按照指定的顏色來顯示字符串,需要的朋友可以參考下2014-10-10

