Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
HTA/HTML返回按钮不工作_Html_Onclick_Return_Back_Hta - Fatal编程技术网

HTA/HTML返回按钮不工作

HTA/HTML返回按钮不工作,html,onclick,return,back,hta,Html,Onclick,Return,Back,Hta,我有一个非常基本的发射器: <html> <head> <HTA:APPLICATION id="hwHTA" applicationName="hyperHTA" border="thin" borderStyle="normal" caption="yes" maximizeButton="yes" minimizeButton="yes" showInTaskbar="no" windowState="normal" innerBorder="yes" nav

我有一个非常基本的发射器:

<html>
<head>
<HTA:APPLICATION id="hwHTA"
applicationName="hyperHTA"
border="thin"
borderStyle="normal"
caption="yes"
maximizeButton="yes"
minimizeButton="yes"
showInTaskbar="no"
windowState="normal"
innerBorder="yes"
navigable="yes"
scroll="auto"
scrollFlat="yes"
singleInstance="yes" 
sysMenu="yes"
contextMenu="yes"
selection="yes" 
version="1.0" />
<title>Simple HTML Page</title>
</head>
<body>
<a href="m1.hta" target="_top">LINK</a>
</body>
</html>

简单HTML页面
并启动此hta文件:

<HTA:APPLICATION id="hwHTA"
applicationName="hyperHTA"
border="thin"
borderStyle="normal"
caption="yes"
maximizeButton="yes"
minimizeButton="yes"
showInTaskbar="no"
windowState="normal"
innerBorder="yes"
navigable="yes"
scroll="auto"
scrollFlat="yes"
singleInstance="yes" 
sysMenu="yes"
contextMenu="yes"
selection="yes" 
version="1.0" />
    <SCRIPT type="text/jscript">
        // Always Set Size Here to Avoid Flicker
        window.moveTo(100,100);
    </SCRIPT>
<body background = "Image.jpg">
<TITLE>Chip-set PC-Booster</TITLE>
    <script type="text/javascript" language="javascript">
        function RunFile() {
                window.open("website.com");
        }
    </script>
    <script type="text/javascript" language="javascript">
        function RunFile2() {
        WshShell = new ActiveXObject("WScript.Shell");
        WshShell.Run("me1.exe", 1, false);
        }
    </script>
    <script type="text/javascript" language="javascript">
        function RunFile3() {
        WshShell = new ActiveXObject("WScript.Shell");
        WshShell.Run("me2.exe", 1, false);
        }
    </script>
    <script type="text/javascript" language="javascript">
        function RunFile4() {
        WshShell = new ActiveXObject("WScript.Shell");
        WshShell.Run("me13.exe", 1, false);
        }
    </script>
    <script type="text/javascript" language="javascript">
        function RunFile5() {
        WshShell = new ActiveXObject("WScript.Shell");
        WshShell.Run("me15.exe", 1, false);
        }
    </script>
    <script type="text/javascript" language="javascript">
        function RunFile6() {
        WshShell = new ActiveXObject("WScript.Shell");
        WshShell.Run("me16.exe", 1, false);
        }
    </script>
    <script type="text/javascript" language="javascript">
        function RunFile7() {
        WshShell = new ActiveXObject("WScript.Shell");
        WshShell.Run("License.txt", 1, false);
        }
    </script>
    <script type="text/javascript" language="javascript">
        function RunFile8() {
        WshShell = new ActiveXObject("WScript.Shell");
        WshShell.Run("FILEPATH", 1, false);
        }
    </script>
    <script type="text/javascript" language="javascript">
        function RunFile9() {
        WshShell = new ActiveXObject("WScript.Shell");
        WshShell.Run("me19.exe", 1, false);
        }
    </script>
    <script type="text/javascript" language="javascript">
        function RunFile10() {
        WshShell = new ActiveXObject("WScript.Shell");
        WshShell.Run("me25.exe", 1, false);
        }
    </script>
    <script type="text/javascript" language="javascript">
        function RunFile11() {
        WshShell = new ActiveXObject("WScript.Shell");
        WshShell.Run("me23.exe", 1, false);
        }
    </script>
    <SCRIPT LANGUAGE="VBScript">
        Sub ExitProgram()
            window.close()
        End Sub
    </script>
<input type="button" value="   Goto the website   " name="run_button"  onClick="RunFile()"><p>
<input type="button" value="     Quick Optimise    " name="run_button"  onClick="RunFile2()"><p> 
<input type="button" value="       Full Optimise      " name="run_button"  onClick="RunFile3()"><p> 
<input type="button" value="       Quick restore      " name="run_button"  onClick="RunFile4()"><p>
<input type="button" value="       Deep restore      " name="run_button"  onClick="RunFile5()"><p>
<input type="button" value="        Turbo mode       " name="run_button"  onClick="RunFile6()"><p>
<input type="button" value="    View the licence    " name="run_button"  onClick="RunFile7()"><p>
<input type="button" value="Optimise the registry" name="run_button"  onClick="RunFile9()"><p>
<input type="button" value="    Edit the page file    " name="run_button"  onClick="RunFile10()"><p>
<input type="button" value="            Uninstall            " name="run_button"  onClick="RunFile11()"><p>
<input type="button" value="                 Exit                 " name="run_button"  onClick="ExitProgram()"><p>
<FORM><INPUT Type="button" VALUE="Back" onClick="history.go(-1);return true;"></FORM>
</body>

//始终在此处设置大小以避免闪烁
窗口。移动到(100100);
芯片组PC助推器
函数RunFile(){
window.open(“website.com”);
}
函数RunFile2(){
WshShell=newActiveXObject(“WScript.Shell”);
Run(“me1.exe”,1,false);
}
函数RunFile3(){
WshShell=newActiveXObject(“WScript.Shell”);
Run(“me2.exe”,1,false);
}
函数RunFile4(){
WshShell=newActiveXObject(“WScript.Shell”);
Run(“me13.exe”,1,false);
}
函数RunFile5(){
WshShell=newActiveXObject(“WScript.Shell”);
Run(“me15.exe”,1,false);
}
函数RunFile6(){
WshShell=newActiveXObject(“WScript.Shell”);
Run(“me16.exe”,1,false);
}
函数RunFile7(){
WshShell=newActiveXObject(“WScript.Shell”);
Run(“License.txt”,1,false);
}
函数RunFile8(){
WshShell=newActiveXObject(“WScript.Shell”);
Run(“FILEPATH”,1,false);
}
函数RunFile9(){
WshShell=newActiveXObject(“WScript.Shell”);
Run(“me19.exe”,1,false);
}
函数RunFile10(){
WshShell=newActiveXObject(“WScript.Shell”);
Run(“me25.exe”,1,false);
}
函数RunFile11(){
WshShell=newActiveXObject(“WScript.Shell”);
Run(“me23.exe”,1,false);
}
子出口程序()
window.close()
端接头












当按下后退按钮时,它不会做任何事情。任何人都可以帮忙。

您需要将onClick=“上的
onClick=“history.go(-1)
替换为
window.history.back()

我刚刚检查了它的工作原理

您需要将onClick=“上的
onClick=“history.go(-1)
替换为
window.history.back()

我刚刚检查了它的工作原理

您需要将onClick=“上的
onClick=“history.go(-1)
替换为
window.history.back()

我刚刚检查了它的工作原理

您需要将onClick=“上的
onClick=“history.go(-1)
替换为
window.history.back()

我刚刚检查了它的工作原理

我似乎没有工作,我刚刚试过
你确定吗?我检查了您显示的这个示例,按下一个按钮返回到上一页,您是否使用问题中的上述代码对其进行了测试。创建了两个文档,其中一个是​​切换到另一个和另一个的“后退”按钮,然后在我来的页面上按我后退ozvraschalo尝试一下,但我似乎没有工作,我刚刚尝试了
,你确定吗?我检查了您显示的这个示例,按下一个按钮返回到上一页,您是否使用问题中的上述代码对其进行了测试。创建了两个文档,其中一个是​​切换到另一个和另一个的“后退”按钮,然后在我来的页面上按我后退ozvraschalo尝试一下,但我似乎没有工作,我刚刚尝试了
,你确定吗?我检查了您显示的这个示例,按下一个按钮返回到上一页,您是否使用问题中的上述代码对其进行了测试。创建了两个文档,其中一个是​​切换到另一个和另一个的“后退”按钮,然后在我来的页面上按我后退ozvraschalo尝试一下,但我似乎没有工作,我刚刚尝试了
,你确定吗?我检查了您显示的这个示例,按下一个按钮返回到上一页,您是否使用问题中的上述代码对其进行了测试。创建了两个文档,其中一个是​​切换到另一个和另一个的后退按钮,然后按我回来ozvraschalo在我来的那一页上试试看