It needs to go in the child page. The initial page doesn't have parents.
Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: tom robertson [private.php?do=newpm&u=]
Posted At: 14. juli 2004 14:44
Posted To: microsoft.public.frontpage.client
Conversation: child page remain, main to close
Subject: Re: child page remain, main to close
Hi sorry for my mistake. I have now put your script into the body tag of
the parent file (the one i want to
close) - see below. However it still does not want to close.
Thanks. T
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252"> <meta name="GENERATOR" content="Microsoft
FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document">
<title>Click here</title>
<script>
//Modeless window script- By DynamicDrive.com //for full source code and
terms of use //visit
http://www.dynamicdrive.com
function modelesswin(url,mwidth,mheight){ if
(document.all&&window.print) //if ie5 eval('window.showModelessDialog
(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
gHeight:'+mheight+'px")')
else
eval('window.open
(url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}
modelesswin
("file:///Z:/Form/Test/partnersearch.htm",800,800)
</script>
</head>
<body onblur="parent.close; 'return.false;'">
</body>
</html>
>-----Original Message-----
>Thanks for this. Did as instructed but parent page
failed
>to close. Parent page html is:
>
><html>
>
><head>
><meta http-equiv="Content-Type" content="text/html;
>charset=windows-1252"> <meta name="GENERATOR" content="Microsoft
>FrontPage 4.0"> <meta name="ProgId"
>content="FrontPage.Editor.Document">
><title>Click here</title>
><script>
>
>//Modeless window script- By DynamicDrive.com //for full source code
>and terms of use //visit http://www.dynamicdrive.com
>
>function modelesswin(url,mwidth,mheight){ if
>(document.all&&window.print) //if ie5 eval('window.showModelessDialog
>
(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
>gHeight:'+mheight+'px")')
>else
>eval('window.open
>
(url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
>dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
>}
>
>modelesswin
>("file:///Z:/Form/Test/partnersearch.htm",800,800)
>
></script>
>
></head>
>
><body>
>
></body>
>
></html>
>
>
>partnersearch.htm has your script in the body tag.
>
>Tom
>
>>-----Original Message-----
>>Add this to the opening body tag for the page that you
>want to close:
>>
>>onblur="parent.close; 'return.false;'"
>>
>>So that the body tag looks like this:
>>
>><body onblur="parent.close; 'return.false;'">
>>
>>Note that there is both a ' and a" at the end: '"
>>
>>
>>--
>>Steve Easton
>>Microsoft MVP FrontPage
>>95isalive
>>This site is best viewed............
>>........................with a computer
>>
>>"tom robertson" <(E-Mail Removed)>
>wrote in message
>>news:2cc7801c4699a$1a4228c0$(E-Mail Removed)...
>>> I have a main page that pops up a child page. I would like the main
>>> page to close once the child page is
>open.
>>> Using this.close(); at the moment but
>>> a) this propmpts the user with a confirmation window
>>> b) this operation closes both the main and the child windows
>>>
>>> is ther some code, or a function in frontpage that
will
>>> enable me to have the main page closed once the child
>has
>>> popped up?
>>>
>>> thanks,
>>>
>>> Tom
>>
>>
>>.
>>
>.
>