PDA

View Full Version : how can i rid off?!



rflorico
February 1st, 2004, 02:26 AM
Gud day guys!

I just want to ask how can I close a popup window after clicking it. The case is this. In a site there will appear a pop-up window which has 3 links, if i click link 1, or 2 or 3, the pop up window will close, how can I do that. sorry for this question if this is a bad question.

Thanks in advance.
:D

monotypic
February 1st, 2004, 02:39 AM
found this on google.. havn't tested it but it looks like this should work.


<html>
<head>
<script language="JavaScript">
msgWindow=null;
function Sas1(){
if(msgWindow!=null)
msgWindow.close();
msgWindow=window.open("","displayWindow","menubar=no,scrollbars=no,status=no,width=300,heigh t=300");

}
function Sas2(){
if(msgWindow!=null)
msgWindow.close();
msgWindow=window.open("","displayWindow","menubar=yes,scrollbars=yes,status=yes,width=500,he ight=500");

}
</script>
</head>
<body>
<input type="button" name="cmdOpen1" value="First Window" onClick="Sas1()">
<input type="button" name="cmdOpen2" value="Second Window" onClick="Sas2()">
</body>
</html>

eyezberg
February 1st, 2004, 09:19 AM
you have to use code tags or disable html..
fixed

rflorico
February 1st, 2004, 11:13 AM
Thank you for the reply but is there any other way to do it by only using actionscript or any script that i will attached in my swf file, in its frame.

here's my code

_root.animation.onRelease = function()
{
getURL("FSCommand:allowscale", false);
getURL("FSCommand:fullscreen", true);
getURL("FSCommand:showmenu", false);
getURL("http://www.somesite.com/","_blank");
}

Ins't it possible to just add a line or a couple of lines to this code the make this pop up window close?

Thanks again.
:be: