Java pop up

W

Webmaster

I use a java pop up to select a month which shows a
calender of events in that month. I used code from a
website which offers code of the type. Can I get the pop
up to close when the selected month page opens. I have a
close button on the popup and I know it will go into the
back ground when I click outside of it, but I would like
it to close automatically. Can this be done. I will need
code to insert in Front Page.
 
S

Steve Easton

Try adding the following to the body tag in the pop up.

onblur="parent.close()"

Or you could also just add parent.close(); to the function that launches the
calendar window.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
T

Tom Pepper Willett

Steve: Will that work with Java (which is what the OP was addressing).
Or, did the OP mean Javascript?
--
-----
Tom Pepper Willett
Microsoft MVP - FrontPage
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
http://msdn.microsoft.com/office/understanding/frontpage/
----
| Try adding the following to the body tag in the pop up.
|
| onblur="parent.close()"
|
| Or you could also just add parent.close(); to the function that
launches the
| calendar window.
|
|
| --
| Steve Easton
| Microsoft MVP FrontPage
| 95isalive
| This site is best viewed..................
| ..............................with a computer
| | > I use a java pop up to select a month which shows a
| > calender of events in that month. I used code from a
| > website which offers code of the type. Can I get the pop
| > up to close when the selected month page opens. I have a
| > close button on the popup and I know it will go into the
| > back ground when I click outside of it, but I would like
| > it to close automatically. Can this be done. I will need
| > code to insert in Front Page.
|
|
 
S

Steve Easton

I'm thinking they meant javascript.
onblur="parent.close()" will work as a stand alone and close the page when
it looses focus. ( is minimized to the taskbar )
If the pop up is a child page it will simply close. If it isn't a child
page the viewer will receive the prompt about attempting to close the window
and will have to click Yes.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top