Thursday, March 22, 2012

Newbie- how to maximized page when start

Dear All,
I am very new with asp.net .. I need my page will automatically maximized when start.. how to do this? .. please advise and thanks a lot in advance
Regards
Winanjayadoesn't matter that it is with .net, just use javascript as you would normally.

<html>
<head>
<script language="JavaScript" type="text/javascript">
function MaxWindow() {
var X = 0;
var Y = 0;
if (screen.availWidth){
X = screen.availWidth;
Y = screen.availHeight;
}
window.resizeTo(X, Y);
window.moveTo(0,0);

}
</script>
<body onLoad="MaxWindow();">
test
</body>
</html>

0 comments:

Post a Comment