Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want pop up the window which should be take the size of content of the page.
Posted
Comments
Sergey Alexandrovich Kryukov 3-Nov-13 12:48pm    
Why? How are you going to define the "size of the content of the page". What is that?
And do you know that popups are evil, many users block them?
Anyway, http://whathaveyoutried.com so far?
—SA

1 solution

Aside from all the missing information, the way you can put a "pop-up" in a web page via javaScript is to create a hidden
of the desired size, and including the desired controls if appropriate. Since it's a already part of the page, and not a real pop-up window, it will not be blocked.

You use the DOM to change its visibility from 'hidden' to 'visible' (and back).
Use the z-index property to force it on top.

The size of your whatever can be gotten via javaScript, as well, assuming you know how to identify it, or, if it's the entire window, ask for that.



 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900