Click to See Complete Forum and Search --> : How to set the size of loading window in JavaScript?
akrashdi
01-08-2004, 03:23 PM
How can I set size and other attributes of current window which is being loaded. (do'nt wanna open new window of a specific size)
I mean, When someone visit one of my website's page it should be automatically resized and statusbar, scroll bar and such things should be disappeared.
I know how to open new window of specific size but this situation is different. I want it when current window loads.
sorry, If I could not make you understand, my english is :(
I'll really appreciate your help....
Regards,
Khalid Ali
01-08-2004, 04:30 PM
The only thing you can do is change the current window size by using
window.resizeTo(x,y)
function, changing all othr properties will not work in all new browser.Only NS4+ had these settings chnageable and even that was not implemented completely.
akrashdi
01-11-2004, 08:02 AM
Dear Khalid,
Is it possible with CSS ..... or
Is there any possible way to do that. for example, with any serverside coding?
and also, there is one solution which is clicking to my mind, what if I use a javascript in loading page that opens a new window of a specific size and then close itself? I think this is gonna work. So, what do you think, what are the limitations in that solution. Any disadvantages?
Rgards,
Amir K. Rashdi
Khalid Ali
01-11-2004, 08:36 AM
No limitations in that,as a matter of fact thats the only work around, that is when some one opens a main page that main page in turn opens anohter page using window.open and sets the window properties and closes the parent window..This will work perfectly,however you will have to keep this in mind that most of the popup blocker work on the same idea,they stop window.open() to open a new window without users click.So if some one has popup blocked(say mozilla based browsers)they will only see a blank parent page which tried to open popup without any success.