QA.TechInterviews.com - your tech questions answered
What Is The HTML Code To Have The Browser Window Re-Size When Someone Visit My Page?
I created a web site that it only show 20% of the copmplete screen and I woul like to have a customise Browser Window when is open.
You are Talking about Javascript here
1- Put this Code in your head tag
<script language="jaascript">
function resizePopUp()
{
var x = document.getElementById('Content').offsetWidth;
var y = document.getElementById('Content').offsetHeight;
if(y > 500) y = 500;
window.window.resizeTo(x+30,y+40);

}
</script>

2- Now in your html Body tag
<body onload="resizePopUp();">

3- add all your content in a table and gove it "ID="Content"
that's it..
You are Talking about Javascript here
1- Put this Code in your head tag
<script language="jaascript">
function resizePopUp()
{
var x = document.getElementById('Content').offsetWidth;
var y = document.getElementById('Content').offsetHeight;
if(y > 500) y = 500;
window.window.resizeTo(x+30,y+40);

}
</script>

2- Now in your html Body tag
<body onload="resizePopUp();">

3- add all your content in a table and gove it "ID="Content"
that's it..

Back to QA. TechInterviews.com. Powered by Yahoo! Answers and TechInterviews.com community.