Design a Web page that opens with a full-screen window with a text box and a button. When the user enters the information in the text box and clicks the button, it closes the window and the information is displayed on the main page.
index.php page
<title> Home </title>
<body onload= "window.open (' fullwin.php ', ' roc3000 ', ' fullscreen ')" >
</body>
<table>
<tr>
<td>
<input type= "text" value= "<?php echo $userinput?>" Name= "Show" id= "Show" >
</td>
</tr>
</table>
fullwin.php page
<title> popup page with full-screen window </title>
<script>
<!--
function Winclosel () {
Window.close ();
window.open ("index.php", "" "," fullscreen=1 ");
}
-->
</script>
<body leftmargin= "0" topmargin= "0" marginwidth= "0" marginheight= "0" scroll= "no" >
<table width= "100%" border= "0" cellspacing= "0" cellpadding= "0" >
<tr><td>
<input type= "text" value= "<?php echo $userinput?>" name= "Userinput" id= "Userinput" onclick= "Winclose ()" >
</td></tr>
<tr><td>
<input type= "summit" value= "<?php echo $userinput?>" name= "Jump" id= "Jump"
Onclik=>
</td></tr>
</table>
</body>
Report:
Toolbar=no whether the toolbar is displayed, yes for display;
Menubar,scrollbars represents the menu bar and scroll bar.
Resizable=no whether to allow changes to the window size, yes to allow;
Location=no whether the address bar is displayed, yes is allowed;
Status=no whether the information in the status bar is displayed (usually the file is open), yes to allow;
width=400 window width;
height=300 window height;
The pixel value of the Top=0 window from the top of the screen;
The pixel value of the left=0 window from the left side of the screen;
<form name= "Form1" method= "post" action= ' main.php ' onsubmit= ' window.open ' ("", "Winname", "fullscreen=1") ' Target =winname>
<form name= "Form1" method= "post" action= ' onsubmit= ' window.open ("main.php", "", "Fullscreen=1") ' >
window.open ("filename", "", "fullscreen=1");
window.open (URL, ' Cscedclogin ', "dependent,alwayslowered=0,alwaysraised=0,channelmode=0,dependent=0,directories= 0,fullscreen=1,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0, Screenx=0,screeny=0,left=0,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no ");
Close Previous window??
Window.opener=null;
Window.close ();