| |||||
| Dernière réponse | |
|---|---|
| Sujet : javascript: pop up | |
| antibillou | Voici une fonction JavaScript qui te permet de le faire.
wloc --> ton lien (ex: "popup.html" ) sWidth_i --> largeur sHeight_i --> hauteur function openPopupWindow (wloc, sWidth_i, sHeight_i) { if (wAddEvent!=null) if (!wAddEvent.closed) { wAddEvent.focus(); return; } var x=parseInt((screen.availWidth-sWidth_i)/2) var y=parseInt((screen.availHeight-sHeight_i)/2) wAddEvent = window.open(wloc,'wAddEvent','toolbar=no,locati on=no,resizable=no,directories=no,status=no,person al=no,menubar=no,scrollbars=yes,width='+sWidth_i+ ',height='+sHeight_i+',left='+x+',top='+y); wAddEvent.moveTo(x,y);
|
| Vue Rapide de la discussion |
|---|