Figure 1 Targeting the Frame
default.html
<html>
<frameset cols="100,*">
<frame name="input" src="input.html">
<frame name="output" src="output.html">
</frameset>
</html>
input.html
<html>
<body bgcolor="black">
<form target="output" action="output.asp">
<input type=text name=text1 size=10><br>
<input type=text name=text2 size=10><br>
<input type=text name=text3 size=10><br>
<input type=text name=text4 size=10><br>
<input type=submit value="Submit">
</form>
</body>
</html>
output.asp
<html>
<body bgcolor="white">
Text 1 = <%=Request("Text1")%><br>
Text 2 = <%=Request("Text2")%><br>
Text 3 = <%=Request("Text3")%><br>
Text 4 = <%=Request("Text4")%><br>
</body>
</html>
ouput.html
<html>
<body bgcolor="white">
<H1>Output Window</H1>
</body>
</html>
Figure 2 IEOLECMDID.html
<html>
<head>
<script language=vbscript>
SUB DoCmd(cmd, opt)
on error resume next
IEWB.ExecWB cmd, opt, 25, 75
MsgBox ("Error # " & CStr(Err.Number) & Chr(13) & Chr(10) & Err.Description)
END SUB
</script>
</head>
<body>
<object id="IEWB" width=0 height=0
classid="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
<hr>
<form name=myform>
<select name=CMDID>
<option value=1>OPEN</option>
<!--
<option value=2>NEW</option>
-->
<option value=3>SAVE</option>
<option value=4>SAVEAS</option>
<option value=5>SAVECOPYAS</option>
<option value=6>PRINT</option>
<option value=7>PRINTPREVIEW</option>
<option value=8>PAGESETUP</option>
<option value=9>SPELL</option>
<option value=10>PROPERTIES</option>
<option value=11>CUT</option>
<option value=12>COPY</option>
<option value=13>PASTE</option>
<option value=14>PASTESPECIAL</option>
<option value=15>UNDO</option>
<option value=16>REDO</option>
<option value=17>SELECTALL</option>
<option value=18>CLEARSELECTION</option>
<option value=21>UPDATECOMMANDS</option>
<option value=22>REFRESH</option>
<option value=23>STOP</option>
<option value=24>HIDETOOLBARS</option>
<option value=25>SETPROGRESSMAX</option>
<option value=26>SETPROGRESSPOS</option>
<option value=27>SETPROGRESSTEXT</option>
<option value=28>SETTITLE</option>
<option value=29>SETDOWNLOADSTATE</option>
<option value=30>STOPDOWNLOAD</option>
</select>
<select name=CMDOPT>
<option value=0>DODEFAULT</option>
<option value=1>PROMPTUSER</option>
<option value=2>DONTPROMPTUSER</option>
<option value=3>SHOWHELP</option>
</select>
<input type=button value="Execute" onclick="DoCmd myform.CMDID.selectedIndex+1, myform.CMDOPT.selectedIndex">
</form>
<hr>
</body>
</html>
Figure 3 FindText.html
<HTML>
<head>
<script language="vbscript">
sub FindText (str)
dim docText
set docText = document.body.createTextRange
docText.findText(str)
docText.select
end sub
</script>
</head>
<BODY>
<form name=finder>
<input type=text name=text><input type=button name=findit value="Find"
onclick="FindText(finder.text.value)">
</form>
<pre>
JABBERWOCKY
by Lewis Carroll
(from Through the Looking-Glass and What Alice Found There, 1872)
'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.
'Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubjub bird, and shun
The frumious Bandersnatch!'
He took his vorpal sword in hand:
Long time the manxome foe he sought --
So rested he by the Tumtum tree,
And stood awhile in thought.
And as in uffish thought he stood,
The Jabberwock, with eyes of flame,
Came whiffling through the tulgey wood,
And burbled as it came!
One, two! One, two! And through and through
The vorpal blade went snicker-snack!
He left it dead, and with its head
He went galumphing back.
'And has thou slain the Jabberwock?
Come to my arms, my beamish boy!
O frabjous day! Calooh! Callay!'
He chortled in his joy.
'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.
</pre>
</BODY></HTML>
Figure 4 Mouseover Event
<html>
<body>
<script language="JavaScript">
function DoOnMouseOver() {
if (window.event.srcElement.className == "rollover") {
window.event.srcElement.style.color = "#0000CC";
window.event.srcElement.style.fontWeight= 700;
}
}
function DoOnMouseOut() {
if (window.event.srcElement.className == "rollover") {
window.event.srcElement.style.color = "#000000";
window.event.srcElement.style.fontWeight = 400;
}
}
document.onmouseover = DoOnMouseOver;
document.onmouseout = DoOnMouseOut;
</script>
<a class="rollover" href="/">Mouse Over Me</a>
</body>
</html>