这段程序放在<body>与</body>之间
<script>
<!--
function windowopen(){
var target="http://play.zol.com.cn"
newwindow
=window.open("","","scrollbars")
if (document.all){
newwindow.moveTo(
0,0)
newwindow.resizeTo(screen.width,screen.height)
}
newwindow.location
=target
}
//-->
</script>
<form>
<input type="button" onClick="windowopen()" value="全屏显示" name="button">
</form>
 
 程序讲解:
   


function windowopen()
定义一个函数。
{ var target="http://zhoucaiqi.51.net"
设置一个字符串。
newwindow=window.open("","","
scrollbars")
打开一个新窗口。
if (document.all)
{ newwindow.moveTo(0,0)
新窗口从(0,0)位置开始显示。
newwindow.resizeTo
(screen.width,screen.height) }
新窗口的尺寸是整个屏幕的宽,整个屏幕的高。
newwindow.location=target 显示target指定的链接地址。
<input type="button" onClick="windowopen()" value="全屏显示" name="button">

相关文章:

  • 2021-08-29
  • 2022-12-23
  • 2021-07-25
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2022-01-09
  • 2021-12-03
相关资源
相似解决方案