亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

HTML DOM replace() 方法

定義和用法

replace() 方法可用一個(gè)新文檔取代當(dāng)前文檔。

語(yǔ)法

location.replace(newURL)

說(shuō)明

replace() 方法不會(huì)在 History 對(duì)象中生成一個(gè)新的記錄。當(dāng)使用該方法時(shí),新的 URL 將覆蓋 History 對(duì)象中的當(dāng)前記錄。

實(shí)例

下面的例子將使用 replace() 方法來(lái)替換當(dāng)前文檔:

<html>
<head>
<script type="text/javascript">
function replaceDoc()
  {
  window.location.replace("http://chabaoo.cn")
  }
</script>
</head>
<body>

<input type="button" value="Replace document" onclick="replaceDoc()" />

</body>
</html>