APPLICATION=YES TRUSTED=YES
Kod: Zaznacz cały
<a href="menu/a.htm" target="contentiframe"">A</a>
<a href="menu/b.htm" target="contentiframe"">B</a>
Kod: Zaznacz cały
<iframe name="contentiframe" id="contentiframe" src="menu/default.htm" APPLICATION=YES TRUSTED=YES>
<p>Your browser does not support iframes.</p>
</iframe>
+ HTML:
Kod: Zaznacz cały
<script>function runFile() {
try {
var shell = new ActiveXObject("WScript.Shell");
shell.Run('test.exe');
} catch (e) {
alert("Error.");
}
}
</script>
Kod: Zaznacz cały
<input type="button" value="Instaluj" onclick="runFile()" />
Works under WinXP and Win11.