homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Popup 1x1 pixel
How to create a popup of transition

 4:28 pm on Jun 26, 2004 (gmt 0)


I would like to open a popup in Javascript with a width and a height of 1 pixel? This will be used to check some data and open another pop up with the right size. Then the 1x1 popup will be automatically closed.

I tried to use window.open with the width and height = 1 but the size is still far to big (about 50x50).

Does anybody know the solution?

Many thanks for your help,




 4:46 pm on Jun 26, 2004 (gmt 0)

AFAIK it cannot be done. Also there will always be a piece of that blue bar in the top.

I guess that some minimum size has been set because windows are there for users to be seen.


 7:48 pm on Jun 26, 2004 (gmt 0)

By all reports, window.open() cannot open a window smaller than 100px X 100px.

What about collecting the info you need in the current window, then use self.resizeTo(x,y)?

Or even open the new window to collect the data, then resize that small window to the size it needs?


 10:01 pm on Jun 26, 2004 (gmt 0)

Quite a few sites use the nasty tactic of loading popups offscreen and then moving them when they're ready.

AFAIK this is only an IE only thing though, but could be what you're looking for :)


Bernard Marx

 11:38 pm on Jun 26, 2004 (gmt 0)

Could you use an invisible IFRAME for the same thing?


 4:11 pm on Jul 6, 2004 (gmt 0)

Hi all,

Many thanks for all theses solutions! I like very much the idea of auto resizing the window ;)

All technics are very impressive, I will get more info on them to be sure to have the right solution in hand ;)

Again, thx you all for your support!



 8:18 pm on Jul 7, 2004 (gmt 0)

Can't you pop the window off the screen so it is never seen by the user? Then write a script to automatically close the window within 5 seconds.

Just an idea.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved