What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Close Javascript Window

Close Javascript Window
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Close Javascript Window
code:
<script>
   var newwindow = '';
   
   function popitup(url)
   {
      if (!newwindow.closed && newwindow.location)
   {
      newwindow.location.href = url;
   }
   else
   {
      newwindow=window.open(url,'name','height=200,width=150');
      if (!newwindow.opener) newwindow.opener = self;
   }
      if (window.focus) {newwindow.focus()}
         return false;
   }
</script>

<body onLoad="popitup('upload.html')">

   <a href="#" onClick="javascript:popitup('javascript:window.close()')">close</a>

</body>

JavaScript - Cross window scripting

This post was edited on 03-05-2005 at 06:50 PM by matty.
03-05-2005 06:46 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Close Javascript Window - by DJeX on 03-04-2005 at 02:53 AM
RE: Close Javascript Window - by ShawnZ on 03-04-2005 at 03:30 AM
RE: Close Javascript Window - by RaceProUK on 03-04-2005 at 10:05 AM
RE: Close Javascript Window - by DJeX on 03-05-2005 at 05:58 AM
RE: Close Javascript Window - by matty on 03-05-2005 at 06:46 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On