Click here to Skip to main content
16,020,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello..
I have a page in html.. I want to set the size of the browser such that when i open my webpage it does not take the whole screen..
Can you help me plz...
Thank u...
Posted

Even there are option to do so I would advise you not to! Remember that it's not your browser but mine! It's considered very rude to take over the client's browser, instead think about dynamic design of your web page...
 
Share this answer
 
 
Share this answer
 
v2
this may help u, try it once

In the <head> section

<script>
function changeScreenSize(w,h)
{
window.resizeTo( w,h )
}
</script>


In the <body> tag

<body önload="changeScreenSize(500,300)">

</body></body></head>

Change sizes and try it
 
Share this answer
 
v2
Comments
Member 10626057 18-Mar-14 13:06pm    
stil the same =/
vsrikanth87 18-Mar-14 13:09pm    
try to clear the browser history and run it
 
Share this answer
 
Comments
Member 10626057 18-Mar-14 12:58pm    
nt working =/

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