色婷婷狠狠18禁久久YY,CHINESE性内射高清国产,国产女人18毛片水真多1,国产AV在线观看

html網(wǎng)頁全屏代碼?

錢浩然2年前12瀏覽0評論

HTML網(wǎng)頁全屏代碼可以在瀏覽器的查看源代碼功能里面看的。

HTML是超文本傳輸協(xié)議的縮寫,是企業(yè)常用的靜態(tài)頁面技術(shù)之一。HTML網(wǎng)頁全屏代碼可以在瀏覽器的查看源代碼功能里面查看。所以網(wǎng)頁得有防止黑客攻擊的功能,因?yàn)槿魏我粋€人可以查看到網(wǎng)頁源代碼。

<script><!--function fullwin(){window.open("bigpage.html","bfs","fullscreen,scrollbars")}//--></script><center><form><input type="button" onClick="fullwin()" value="Open Full Screen Window"></form></center>

另外,如果想讓已經(jīng)打開的網(wǎng)頁全屏,有以下兩種方法:

1.使用ActiveX

<html><head><title>test</title><script language="JavaScript">function Fkey(){ var WsShell = new ActiveXObject('WScript.Shell') WsShell.SendKeys('{F11}');}</script></head><body><a href="javascript:Fkey()">to full</a></body></html>

2.使用window.open模擬當(dāng)前頁:

<SCRIPT language="JavaScript"> function toFull(){ if(window.name=="fullscreen")return; var a =window.open("","fullscreen","fullscreen=yes") a.location = window.location.href window.opener=null window.close() } </SCRIPT> <html> <body> <input type=button value="full" onclick=toFull()> </body> </html>