try: self.close() or top.close() ----- Original Message ----- From: "François Dagorn (Cellule NTE - UR1)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 01, 2002 5:17 AM Subject: [Dynapi-Help] dynapi NS6 and window.close()
> Hello all, > > the following piece of code is running well on NS4 and IE6 but > is not running on NS6. When specified within an event listener, > the window.close() function does not do anything ! > > What is wrong, is this a bug in dynapi ? (I'm currently using 2.56 with > dragevent.js patch), is this a bug in NS6 ? or am I buggy ? > > Thanks for testing this code. > > <html> > <head><title>DynAPI 2 Tutorial - Creating Layers</title> > <Script language="Javascript" src="/RearSite/dynapi/dynapi.js "></script> > <Script language="Javascript"> > DynAPI.setLibraryPath('/RearSite/dynapi/lib/') > DynAPI.include('dynapi.api.*'); > DynAPI.include('dynapi.event.*'); > </script> > > <script language="Javascript"> > > DynAPI.onLoad = function() { > > myLayer = new DynLayer() > myLayer.setSize(100, 100) > myLayer.setBgColor('#c0c0c0') > myLayer.moveTo(100, 100) > > exitListener = new EventListener(myLayer); > exitListener.onmouseover = function(e) { > window.close(); > } > myLayer.addEventListener(exitListener); > DynAPI.document.addChild(myLayer); > } > > </script> > </head> > <body bgcolor="#FFFFFF"> > </body> > </html> > > -- > François > > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dynapi-help > _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help