課程
/前端開發
/JavaScript
/JavaScript進階篇
萬分感謝!
2016-09-11
源自:JavaScript進階篇 8-7
正在回答
forward() 方法可加載歷史列表中的下一個 URL。
調用該方法的效果等價于點擊前進按鈕或調用 history.go(1)。
<!DOCTYPE html>?<html>?<head>?<script>?function goForward(){?????window.history.forward()?}?</script>?</head>?<body>?<input type="button" value="前進" onclick="goForward()">?</body>?</html>
慕粉3780355 提問者
慕尼黑1170528 回復 慕粉3780355 提問者
慕村1994845 回復 慕粉3780355 提問者
舉報
本課程從如何插入JS代碼開始,帶您進入網頁動態交互世界
3 回答求大神具體講解一下window.location.search的用法?
2 回答window.history.forward()怎么應用的?
1 回答添加window.history.forward()
3 回答window.history.forward()相關
3 回答具體的應用場景
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-09-11
forward() 方法可加載歷史列表中的下一個 URL。
調用該方法的效果等價于點擊前進按鈕或調用 history.go(1)。
<!DOCTYPE html>?
<html>?
<head>?
<script>?
function goForward(){?
????window.history.forward()?
}?
</script>?
</head>?
<body>?
<input type="button" value="前進" onclick="goForward()">?
</body>?
</html>