HTA - OnKeyDown

<HTML>

<HEAD>

<TITLE>The Peoples Network in Portsmouth Terms and Conditions of Use</TITLE>

<BODY BGCOLOR="#004e98" TEXT="FFFFFF" LINK="FFFFFF" ALINK="FFFFFF" VLINK="FFFFFF">

</HEAD> <hta:application showintaskbar = "yes" caption = "no" border = "thick" contextmenu = "no" innerborder = "no" scroll = "no" singleinstance = "yes" resizable = "yes" windowstate = "maximize" >

<SCRIPT LANGUAGE="VBScript">

Sub LogOnScript Set wshShell = CreateObject("WScript.Shell") wshshell.run "TASKKILL /F /IM mshta.exe" Set wshshell = nothing End Sub

</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">

document.write("&nbsp;")

function No_AltF4() {

var tecla=window.event.keyCode;

var alt=window.event.altKey;

if (alt && tecla==115) {event.keyCode=116; event.returnValue=false;}

if (tecla==91) {event.keyCode=116; event.returnValue=false;}

}

</SCRIPT>

<BODY onKeyDown="javascript:return No_AltF4();">

<CENTER> <TABLE cellSpacing=2 cellPadding=2 width="900" border=0> <TBODY> <TR bgColor=#004e98> <TD>

<CENTER> <IMG src="Logo.jpg">

</CENTER>

<FONT face=Arial color=#ffffff size=5> <P Align="Center"><B>The Peoples Network in Portsmouth</B></P>

<P Align="Center"><B>Terms and Conditions of Use</B></P>

</FONT>

<CENTER> <input id=runbutton class="button" type="button" value="Accept" name="Accept" onClick="LogOnScript">

</CENTER>

</BODY>

posted @ 2018-09-27 08:45  Reboost  阅读(168)  评论(0编辑  收藏  举报