摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <div id="test"></div> <script> var test = document.getElementById 阅读全文
posted @ 2020-04-27 13:06 妹妹早上好 阅读(115) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <div id="test"></div> <script> var test = document.getElementById 阅读全文
posted @ 2020-04-27 13:03 妹妹早上好 阅读(156) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <script> console.log(screen.height); // 示例结果:900 console.log(scre 阅读全文
posted @ 2020-04-27 13:00 妹妹早上好 阅读(154) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <script> console.log('浏览器内部名称:' + navigator.appCodeName); console 阅读全文
posted @ 2020-04-25 09:51 妹妹早上好 阅读(132) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>历史记录跳转</title> </head> <body> <input type="button" value="前进" onclick="goForward()"> <inp 阅读全文
posted @ 2020-04-25 09:45 妹妹早上好 阅读(142) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>更改URL</title> </head> <body> <input type="button" value="载入新文档" onclick="newPage()"> <inp 阅读全文
posted @ 2020-04-25 09:37 妹妹早上好 阅读(210) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>计数器</title> </head> <body> <input type="button" value="开始计数" onclick="startCount()"> <input 阅读全文
posted @ 2020-04-20 19:20 妹妹早上好 阅读(115) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>窗口位置和大小</title> </head> <body> <input type="button" value="打开窗口" onclick="openWin()"> <inpu 阅读全文
posted @ 2020-04-20 19:16 妹妹早上好 阅读(134) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>打开和关闭窗口</title> </head> <body> <p><input type="button" value="打开窗口" onclick="openWin()"></p 阅读全文
posted @ 2020-04-20 19:12 妹妹早上好 阅读(288) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <input type="button" value="删除" onclick="del()"> <script> function 阅读全文
posted @ 2020-04-20 19:08 妹妹早上好 阅读(289) 评论(0) 推荐(0) 编辑