欢迎来到3672js教程,我们关注js教程、js框架、js代码特效等。

js滚动到指定内容处用法代码

js滚动到指定内容处用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction scrollWindow(){window.scrollTo(100,500);}/script/headbodyinput type=button onclick=scrollWindow() value=滚动条 /p滚动...(投递于2019-03-08 13:38:45)

js由指定的像素数滚动内容用法代码

js由指定的像素数滚动内容用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction scrollWindow(){window.scrollBy(100,100);}/script/headbodyinput type=button onclick=scrollWindow() value=滚动条...(投递于2019-03-08 13:38:39)

js指定窗口大小用法代码

js指定窗口大小用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptvar w;function openwindow(){w=window.open('','', 'width=100,height=100');w.focus();}function myFunction(){w.resizeTo(500,500);w.focus();}...(投递于2019-03-08 13:38:36)

js用像素指定窗口大小用法代码

js用像素指定窗口大小用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction resizeWindow(){top.resizeBy(100,100);}/script/headbodyforminput type=button onclick=resizeWindow() value=调整窗口/f...(投递于2019-03-08 13:38:32)

js打印当前页面用法代码

js打印当前页面用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction printpage(){window.print();}/script/headbodyinput type=button value=打印此页面 onclick=printpage() //body/html...(投递于2019-03-08 13:38:27)

js移动新窗口到指定位置用法代码

js移动新窗口到指定位置用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction openWin(){myWindow=window.open('','','width=200,height=100');myWindow.document.write(p这是我的窗口/p);}functio...(投递于2019-03-08 13:38:23)

js相对于当前位置移动新窗口用法代码

js相对于当前位置移动新窗口用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction openWin(){myWindow=window.open('','','width=200,height=100');myWindow.document.write(p这是我的窗口/p);}f...(投递于2019-03-08 13:38:20)

js传输一些文本到源(父)窗口用法代码

js传输一些文本到源(父)窗口用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction openWin(){myWindow=window.open('','','width=200,height=100');myWindow.document.write(p这是我的窗口/p)...(投递于2019-03-08 13:38:16)

js返回新窗口的名字用法代码

js返回新窗口的名字用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptvar myWindow;function openWin(){myWindow=window.open('','MsgWindow','width=200,height=100');myWindow.document.write(p窗口名称为...(投递于2019-03-08 13:38:09)

js检查新的窗口是否已关闭用法代码

js检查新的窗口是否已关闭用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptvar myWindow;function openWin(){myWindow=window.open(,,width=400,height=200);}function closeWin(){if (myWindow){myWindow.c...(投递于2019-03-08 13:38:04)

js关闭新窗口用法代码

js关闭新窗口用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction openWin(){myWindow=window.open(,,width=200,height=100);myWindow.document.write(p这是'我的窗口'/p);}function closeWin(){myWind...(投递于2019-03-08 13:38:00)

js确保新的窗口获得焦点用法代码

js确保新的窗口获得焦点用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction openWin(){myWindow=window.open('','','width=200,height=100');myWindow.document.write(p这是'我的窗口'/p);myWind...(投递于2019-03-08 13:37:53)

js确保新的窗口没有获得焦点用法代码

js确保新的窗口没有获得焦点用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction open_win() {window.open(http://c.3672js.com/);window.open(http://www.3672js.com/);}/script/headbodyforminput t...(投递于2019-03-08 13:37:48)

js打开多个新窗口用法代码

js打开多个新窗口用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction open_win() {window.open(http://c.3672js.com/);window.open(http://www.3672js.com/);}/script/headbodyforminput type=button valu...(投递于2019-03-08 13:37:45)

js打开一个新窗口,并控制其外观用法代码

js打开一个新窗口,并控制其外观用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction open_win(){window.open(http://www.3672js.com,_blank,toolbar=yes, location=yes, directories=no, status=no...(投递于2019-03-08 13:37:37)

js点击一个按钮时,打开一个新窗口用法代码

js点击一个按钮时,打开一个新窗口用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction open_win() {window.open(http://www.3672js.com);}/script/headbodyforminput type=button value=打开窗口...(投递于2019-03-08 13:37:32)

js弹出一个提示框用法代码

js弹出一个提示框用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyp点击按钮查看输入的对话框。/pbutton onclick=myFunction()点我/buttonp id=demo/pscriptfunction myFunction(){var x;var...(投递于2019-03-08 13:37:28)

js弹出一个确认框,并提醒访客点击的内容用法代码

js弹出一个确认框,并提醒访客点击的内容用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyp点击按钮,显示确认框。/pbutton onclick=myFunction()点我/buttonp id=demo/pscriptfunct...(投递于2019-03-08 13:37:24)

js弹出一个带折行的警告框用法代码

js弹出一个带折行的警告框用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyp点击按钮在弹窗总使用换行。/pbutton onclick=myFunction()点我/buttonp id=demo/pscriptfunction myFunction(...(投递于2019-03-08 13:37:19)

js弹出一个警告框用法代码

js弹出一个警告框用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8scriptfunction myFunction(){alert(你好,我是一个警告框!);}/script/headbodyinput type=button onclick=myFunction() value=显示警告框 //body/html...(投递于2019-03-08 13:37:14)

js通过对象元素使用for...in语句用法代码

js通过对象元素使用for...in语句用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyp点击下面的按钮,循环遍历对象 person 的属性。/pbutton onclick=myFunction()点击这里/buttonp i...(投递于2019-03-08 13:37:10)

js摄氏度与华氏转换用法代码

js摄氏度与华氏转换用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headheadscriptfunction convert(degree){if (degree==C){F=document.getElementById(c).value * 9 / 5 + 32;document.getElementById(f).value=M...(投递于2019-03-08 13:37:06)

js使用 min() 来返回两个给定的数中的较小的数用法代码

js使用 min() 来返回两个给定的数中的较小的数用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyp id=demo单击按钮返回5到10之间最小的值。/pbutton onclick=myFunction()点我/butt...(投递于2019-03-08 13:37:01)

js使用 max() 来返回两个给定的数中的较大的数用法代码

js使用 max() 来返回两个给定的数中的较大的数用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyp id=demo单击按钮返回5到10之间的最大值。/pbutton onclick=myFunction()点我/butt...(投递于2019-03-08 13:36:56)

js使用 random() 来返回 0 到 1 之间的随机数用法代码

js使用 random() 来返回 0 到 1 之间的随机数用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyp id=demo点击按钮显示一个随机数/pbutton onclick=myFunction()点我/buttonscriptfunction m...(投递于2019-03-08 13:36:53)