This is a discussion on "Popup Name Detect" within the JavaScript Forum section. This forum, and the thread "Popup Name Detect are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Popup Name Detect
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Popup Name Detect
I have a script which works as follows ...
function PopUp(url, name, width, height) { myWin = window.open (url, name, 'width=' + width + ', height=' + height + ', innerWidth=' + width + ', innerHeight=' + height + ', outerWidth=' + width + ', outerHeight=' + height + ', screenX=0, left=0, screenY=0, top=0, channelmode=0, dependent=0, directories=0, fullscreen=0, location=0, menubar=0, resizable=0, scrollbars=0, status=0, toolbar=0'); } What I want to do is something like (coded wrong / badly, sorry - note CAPITOLS) function PopUp(url, NAME, width, height) { if NAME = "SOMENAME" { MYWINDOWONE = window.open (url, name, 'width=' + width + ', height=' + height + ', innerWidth=' + width + ', innerHeight=' + height + ', outerWidth=' + width + ', outerHeight=' + height + ', screenX=0, left=0, screenY=0, top=0, channelmode=0, dependent=0, directories=0, fullscreen=0, location=0, menubar=0, resizable=0, scrollbars=0, status=0, toolbar=0'); } else MYWINDOW2 = window.open (url, name, 'width=' + width + ', height=' + height + ', innerWidth=' + width + ', innerHeight=' + height + ', outerWidth=' + width + ', outerHeight=' + height + ', screenX=0, left=0, screenY=0, top=0, channelmode=0, dependent=0, directories=0, fullscreen=0, location=0, menubar=0, resizable=0, scrollbars=0, status=0, toolbar=0'); { Anybody have a suggestion to how I might go about this? |
|
|
![]() |
| Tags |
| popup |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script to detect flash? | fezunit | JavaScript Forum | 5 | Jan 28th, 2007 12:18 |
| Detect IE | Totti | JavaScript Forum | 4 | Dec 6th, 2006 00:48 |
| Possible to detect which stylesheet in use? | mar2195 | JavaScript Forum | 9 | Nov 25th, 2006 11:43 |
| Detect whether connection to external url is possible | simonneaves | Classic ASP | 3 | Oct 24th, 2005 13:12 |
| detect pop-up blocker - different | bert | JavaScript Forum | 0 | Jul 22nd, 2005 10:30 |