parent to chlid window
Posted: Sun Aug 01, 2004 9:24 pm
Hi,
i am trying to get the values from a parent window, but no luck, i dont know why it wont work
.
parent.htm
child.htm
any ideas?
thanks
i am trying to get the values from a parent window, but no luck, i dont know why it wont work
parent.htm
Code: Select all
<form name="form" action="{SELF}" method="post">
<input type="text" name="welcome">
<input type="submit" value="Send" name="send">
<input name="pre" type="button" onClick="openit('main.php?mod=promo&file=preview&cid=2&prom=1','child','status=yes,scrollbars=yes,resizable=yes,width=780,height=550')" value="Preview">
</form>Code: Select all
<script language="javascript">
confirm(window.parent.formsї'form'].welcome.value);
//and...
confirm(window.opener.formsї'form'].welcome.value);
</script>thanks