/[webpac]/trunk2/out/js/popup.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk2/out/js/popup.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 477 by dpavlin, Sun Sep 26 19:00:03 2004 UTC revision 478 by dpavlin, Sun Sep 26 19:24:15 2004 UTC
# Line 2  function popup(link) { Line 2  function popup(link) {
2          var target = 'popup';          var target = 'popup';
3          if (! link)  link = this;          if (! link)  link = this;
4          if (link.target) target = link.target;          if (link.target) target = link.target;
5          alert("open "+link.href+" in "+target);          //alert("open "+link.href+" in "+target);
6          var popup_win = window.open(link.href,target,'width=400,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');          var popup_win = window.open(link.href,target,'width=400,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
7          if (popup_win) popup_win.focus();          if (popup_win) {
8                    popup_win.moveTo((screen.width/2),(screen.height/2)-200);
9                    popup_win.focus();
10            }
11          return false;          return false;
12  }  }

Legend:
Removed from v.477  
changed lines
  Added in v.478

  ViewVC Help
Powered by ViewVC 1.1.26