Click here to Skip to main content
15,891,749 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Programmers,

I need to open a window with maximized status. I used "window.resizeTo()". It resizing only, not maximizing the window like maximize button event. I need to open the window with Maximized status. Please help me.

Thanks,
Raja.S
Posted

1 solution

1. ReSize
JavaScript
<script>
function maximize() {
  window.moveTo(0, 0);
  window.resizeTo(screen.width, screen.height);
}
maximize();
</script>

2. Property 'FullScreen'
Adding fullscreen=yes to the features string. But this code is IE only.
 
Share this answer
 

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