HTA Web Browser

01/08/2009 11:38

Here is the code of the simple webbrowser:

<html>
<title>Nativman WEB Browser</title>
<HTA:APPLICATION
ID="myRover"
APPLICATIONNAME="Nativ Browser"
BORDER="THICK"
SYSMENU="YES"
VERSION="1.1"
WINDOWSTATE="maximize"
>
<script language="javascript">
var historyLoc=0;
var blank = new Array (" ");
var theHistory=new Array("https://www.irt.org");

function goThere(){
if(theURL.value.indexOf("://")==-1)
theURL.value="https://"+theURL.value;
if(historyLoc==theHistory.length-1)
theHistory=theHistory.concat(blank);
document.all.webDoc.src=theHistory[++historyLoc]=theURL.value;

}
</script>



<body bgcolor=black oncontextmenu="return false">

<input type="text" id="theURL" value="yahoo.com" onkeypress="if(window.event.keyCode==13) goThere();">
<input type="button" value="Go" class="clsButton" onclick="goThere();">
<input type="button" value="Print Page" onclick="javascript:window.print();">
<input type="button" value="quit Page" onclick="javascript:window.close();">

</ul>
</div>
<hr size=5 width="100%" color=white>
<table border=0 width="100%"><tr>
<td>



<iframe src="yahoo.com" id="webDoc" height="600" width="100%"></iframe>
<body>
<html>

Back