[ Index ] |
|
Code source de Horde 3.1.3 |
1 /** 2 * Horde Popup JavaScript. 3 * 4 * Provides the javascript to open popup windows. 5 * 6 * $Horde: horde/js/popup.js,v 1.2.10.4 2006/02/10 18:14:54 chuck Exp $ 7 * 8 * See the enclosed file COPYING for license information (LGPL). If you did not 9 * receive this file, see http://www.fsf.org/copyleft/lgpl.html. 10 */ 11 function popup(url, width, height) 12 { 13 if (!width) { 14 width = 600; 15 } 16 if (!height) { 17 height = 500; 18 } 19 20 var name = (new Date()).getTime(); 21 var param = "toolbar=no,location=no,status=yes,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height + ",left=0,top=0"; 22 var win = window.open(url, name, param); 23 if (!win) { 24 alert("A popup window could not be opened. Your browser may be blocking popups for this application."); 25 } else { 26 if (typeof win.name == 'undefined') { 27 win.name = name; 28 } 29 if (typeof win.opener == 'undefined') { 30 win.opener = self; 31 } 32 } 33 34 return win; 35 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |