Barry Von Ahsen on Wed, 20 Jul 2005 14:05:30 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[ciapug] grab form value from iframe document


I want to grab a form value from a form in an iframe document (in the same domain, I'm not up to any xss shenanigans)

this doesn't work:
<script language="javascript">
function getIFrameVal() {
	oIFrame = document.getElementById('iframeID');
	val = oIFrame.document.frmID1.fieldname.value;
	alert(val);
}
</script>
nor does it work if I remove document from oIFrame.document.frmID1...

can I do this?

-barry


_______________________________________________ ciapug mailing list ciapug@xxxxxxxxxx http://cialug.org/mailman/listinfo/ciapug