搜索文档
首页
HTML/CSS
JavaScript
服务端开发
Java教程
移动端
数据库
当前位置:
首页
JavaScript
JavaScript 教程
JS 浏览器BOM
源代码
清空
点击运行
<!DOCTYPE html> <html> <title>JavaScript Window 历史记录示例 - 基础教程(div.cn)</title> <body> <button onclick="history.back();">Go Back</button> <p><b>Note:</b> Clicking on the Back button here will not result in any action, because there is no previous URL in the history list:</p> </body> </html>
运行结果