已采纳回答 / hikochen
<html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript"> function openWindow(){ // 新窗口打开时弹出确认框,是否打开 var a = conf...
2018-05-29
最赞回答 / qq_精彩人生_3
<script type="text/javascript"> function openWindow(){ var mywin=confirm('要输入网址么') if(mywin==true) { var myw=prompt('请输入网址'); window.open(myw,'_blank','width=300,height=500') }} </script>
2018-05-29
最赞回答 / 小小瓦尼达
window.open('web','_blank','width=400px,height=500px,menubar=no,toolbar=no')这一句里边web是一个变量,不要加单引号引起来,否则引用不到 window.open(web,'_blank','width=400px,height=500px,menubar=no,toolbar=no')
2018-05-28
已采纳回答 / 雾式ren非
绝对路径:从根目录开始,到你要引用的文件。比如一个js文件:myjs.js在D盘的A文件夹里。你需要引用src="D:\A\myjs.js"。直接打开我的电脑,复制地址就行了。相对路径:相对于你正在编写的index.html的相对位置,src="../js/myjs.js"为index.html上一个文件夹的js文件夹下的myjs.js文件。../表示向上一个文件夹。
2018-05-28
最新回答 / 外星人a
<!DOCTYPE html><html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript"> function openWindow() { var open=confir...
2018-05-28
最赞回答 / 慕沐7780984
你与第一个if对应的else就是document.write("要努力");啊 想返回null就写成document.write("null");
2018-05-27
最新回答 / 我就是高明
第三个onclick写错了var massege=confirm("确定取消设置吗?");结尾分号的格式换成英文 mytxt.removeAttribute("stlye"); style写错了。看的我眼睛都花了<...code...>
2018-05-26
最赞回答 / 慕码人hello_world
上面红框里的,会在生成网页的时候直接调用函数。所以提交直接就出来了。而点击之后提交的,就是通过按钮调用下面红框里的函数contxt()。
2018-05-25