popup window in javascript
-
Dear All, Can i specify the Popup width and height in percentage instead of pixels.
Ramesh.Kanjinghat
-
Dear All, Can i specify the Popup width and height in percentage instead of pixels.
Ramesh.Kanjinghat
You can calculate the pixel size using screen.width and screen.height. var window_width = screen.width * 0.50; // 50% of the screen width var window_height = screen.height * 0.25 // 25% of the screen height
- S 50 cups of coffee and you know it's on!
-
Dear All, Can i specify the Popup width and height in percentage instead of pixels.
Ramesh.Kanjinghat
thanX a lot Steve. Simple but a good solution.
Ramesh.Kanjinghat
-
Dear All, Can i specify the Popup width and height in percentage instead of pixels.
Ramesh.Kanjinghat
Size in % is given regarding the size of the document, so regarding to what, should be given the size of the window, if it is the object you are creating? if you want to define the size of the window in percentage of the size of the screen, then i think you will have to program it.
Contact me! Please feel free to visit my site