Here I am givinng javascript code by using which we can make full screen or normal mode.
This code wcan be useful in ASP.NET

<SCRIPT LANGUAGE=”JavaScript”>

function fullScreen(theURL)
{
window.opener=null;
this.close();
window.open(theURL, ”, ‘fullscreen=yes, scrollbars=auto’);

}
function fuScreen(theURL)
 {
 window.opener=null;
 this.close();
window.open(theURL, ”, ‘fullscreen=no, toolbar=yes ,menubar=yes ,status=yes ,scrollbars=yes, location=yes, resizable=yes, maximized=0, height=800, width=1280, left=0,top=0’);
}
function window_onload()
{
window.moveTo(0,0);
top.window.resizeTo(screen.availWidth,screen.availHeight);

}

//  End –>
</script>

Using this in ASP.NET
=================

<td width=300 align=”right” valign=”middle”>
                <a href=”javascript:fullScreen(‘Override_attack_Tut3.aspx’);”><img src=”images/fullscreen mode.jpg” border=”0″ /></a><td>
            <td width=300 align=”center” valign=”middle”>
                <a href=”javascript:fuScreen(‘Override_attack_Tut3.aspx’);”><img src=”images/normal mode.jpg”border=”0″ /></a><td>

Blogged with Flock

Tags:

Advertisements