Popup Name Detect

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 24th, 2007, 22:35
New Member
Join Date: Jun 2006
Location: Chicago
Age: 33
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote

Reply

Tags
popup

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 04:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43