JAVASCRIPT KONZOLA

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

107
p107.html, p1071.html, p1072.html/ p107.zip
Konzola JavaScript
1655b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code (p107.html):

<TITLE> JavaScript DESTINATION - P107 </TITLE> <FRAMESET ROWS="*,*"> <FRAME NAME="results" SRC="p1071.html"> <FRAME NAME="promptframe" SRC="p1072.html"> </FRAMESET>

Zdrojovy tvar / Source code (p1071.html):

<HTML> <HEAD> <TITLE></TITLE> </HEAD> <BODY> </BODY> </HTML>

Zdrojovy tvar / Source code (p1072.html):

<HTML> <HEAD> <TITLE> JavaScript DESTINATION - P107 </TITLE> <SCRIPT LANGUAGE="JavaScript"> var commands = new MakeArray(8); var current = " "; function process() { for (i=1; i<8; i++) { commands[i] = commands[i+1]; } current = "<B>" + document.form1.command.value; current += "</B>: ... " + eval(document.form1.command.value); commands[8] = current; parent.results.document.open(); for (i=1; i < 9; i++) { parent.results.document.writeln(commands[i] + "<BR>"); } parent.results.document.close(); } function clearwin() { for (i=1; i<9; i++) { commands[i] = " "; } parent.results.document.open() parent.results.document.write("Vysledky 8 poslednych prikazov"); parent.results.document.close() } function MakeArray(n) { this.length = n; for (var i=1; i<=n; i++) { this[i] = " "; } return this; } </SCRIPT> </HEAD> <BODY> <h1>JavaScript Konzola</h1> <SCRIPT LANGUAGE="JavaScript"> <!-- document.write("<b>Prehliadac:</b> " + navigator.userAgent); clearwin(); // --> </SCRIPT> <br> <FORM NAME="form1" onSubmit="return false;"> <INPUT TYPE="text" SIZE = 60 NAME="command"><BR> <INPUT TYPE="BUTTON" VALUE="Otestovat vyraz" onClick="process();"> <INPUT TYPE="RESET" VALUE="Vymazat riadok"> <INPUT TYPE="BUTTON" VALUE="Vymazat vysledky" onClick="clearwin();"> </FORM> </BODY> </HTML>
[ Navrat / BACK ]