Click to See Complete Forum and Search --> : Problem with parent/child control


LoneWolf
09-04-2003, 05:12 AM
i've just recently begun with javascripts, and i've run into a problem.actually two...

the first, is there a way to close a parent window, without having to confirm the closing?

and it seems that my child-popup won't use the hight/width that i tell it to..

this is the script i'm using:
<SCRIPT LANGUAGE="JavaScript">

function WindowOpen() {


msg=window.open('safran.html','Sample',
'toolbar=no',
'location=no',
'directories=no',
'status=no',
'menubar=no',
'scrollbars=no',
'resizable=no',
'copyhistory=yes',
'width=450','height=300');
}

</SCRIPT>

Charles
09-04-2003, 05:40 AM
1) That message is a security feature. MSIE has a flew that you can exploit to get rid of it nonetheless but that would be unethical.

2) The "language" attribute was depricated in 1997 in favor of the "type" attribute.

3) The window geometry needs to be specified with one string.

4) Features that you do not want, need simply to be omitted.

5) See http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1202731.

<a href="http://www.w3.org/" onclick="window.open(this.href, 'child', 'height=400,width=300'); return false>W3C</a>

LoneWolf
09-04-2003, 06:33 AM
thanks a bunch, you're a lifesaver.

(i know it wasn't much, but i kept banging my head over it, maybe i'm just not JS-stuff)