ok here is test code for you..
This works:
---------- This is the Main html code page ----------------------
<HTML>
<HEAD>
</HEAD>
<BODY>
<IFRAME ID=Test src="c:\SupTest.htm" width=200 height=200>
</IFRAME>
<BR>
<BR>
<FORM ID=FormTest>
<input ID=frmTxtText type=text value="">
</FORM>
</BODY>
</HTML>
------------------------------------------------------------
---------- This is the page code that loads in the iframe ------
<HTML>
<HEAD>
<script language=vbscript>
function TestIt()
dim d
d=window.parent.document.forms(0).frmTxtText.value
msgbox d
end function
</script>
</HEAD>
<BODY>
<BR>
<BR>
<FORM ID=FormTest2>
<input ID=frmbut type=button value="test" onclick='TestIt()'>
</FORM>
</BODY>
</HTML>
------------------------------------------------------------
Just create these 2 html files to see how it works.
The code you really want is vbscript:
function TestIt()
dim d
d=
window.parent.document.forms(0).frmTxtText.value
msgbox d
end function
The javascript would look like (works in IE and Netscape6.0^:
function TestIt(){
var d=
window.parent.document.getElementById("frmTxtText"
.value
alert(d);
} "did you just say Minkey?, yes that's what I said."
MrGreed