Ask a Question related to Dreamweaver AppDev, Design and Development.
-
ReidarT #1
Closing Popup window
I have 3 pages.
The first has a button which opens a popup window.
The secons (popupwindow) has a butoon which leeds to the third page.
When I click the button on the second page (popup) I want to close the
second page and open the third maximized (not popup)
regards
ReidarT
ReidarT Guest
-
closing popup window moves mouse to top of page
Hi, I'm a beginning using Dreamweaver 8. I have a site with multiple thumbnails on a page. Each thumb is linked to a popup window with the enlarged... -
Popup menu on popup window
Hi, I want to create a popup menu when a button on a popup window is clicked. I have this in my popup window: myMenu =... -
Problem saving data and closing popup windows
I seem to be missing something, but don't know what. :confused; I have a screen from which a user can click on a button that brings up a popup... -
Self Closing Pop-Up Window?
I'm building a bunch of video samples for my website using flash movies. They open in pop-up windows but when they are done playing the window... -
can a popup window return data to parent window?
Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user... -
Alexandro Colorado #2
Re: Closing Popup window
On Wed, 9 Mar 2005 08:45:05 +0100, ReidarT <reidar@eivon.no> wrote:
Javascript would be the language of choice however the usual warnings are> I have 3 pages.
> The first has a button which opens a popup window.
> The secons (popupwindow) has a butoon which leeds to the third page.
> When I click the button on the second page (popup) I want to close the
> second page and open the third maximized (not popup)
>
> regards
> ReidarT
>
>
that users might not have this if they disable javascript from their
browsers and some browsers won't react to features like resize.
Once of the disclaimer has been said we can move on to the script:
<html>
<head>
<title>JavaScript Window Close Example </title>
</head>
<SCRIPT language="JavaScript1.2">
function popuponclick()
{
my_window = window.open("",
"mywindow","status=1,width=350,height=150");
my_window.document.write('<H1>The Popup Window</H1>');
}
function closepopup()
{
if(false == my_window.closed)
{
my_window.close ();
}
else
{
alert('Window already closed!');
}
}
</SCRIPT>
<body>
<P>
<A href="javascript: popuponclick()">Open Popup Window</A>
</P>
<P>
<A href="javascript: closepopup()">Close the Popup Window</A>
</P>
</body>
</html>
------ For resize: window.resizeBy(100,-100);
--
Alexandro Colorado
------------------------------
Support Engineer
InterAKT Online
[url]http://www.interaktonline.com[/url]
Tel: 40(21) 312.5312
Alexandro Colorado Guest



Reply With Quote

