Last change
on this file since 27781 was
3531,
checked in by tiico, 15 years ago
|
First revision (for testing)
Only in French (translation to be done)
|
File size:
411 bytes
|
Line | |
---|
1 | function PopUp(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0 |
---|
2 | if(window.screen)if(isCenter)if(isCenter=="true"){ |
---|
3 | var myLeft = (screen.width-myWidth)/2; |
---|
4 | var myTop = (screen.height-myHeight)/2; |
---|
5 | features+=(features!='')?',':''; |
---|
6 | features+=',left='+myLeft+',top='+myTop; |
---|
7 | } |
---|
8 | window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight); |
---|
9 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.