JS new open window and transmission information case __javascript native

Source: Internet
Author: User

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 ')" >





<input type= "text" value= "<?php echo $userinput?>" Name= "Show" id= "Show" >




fullwin.php page

<title> popup page with full-screen window </title>



function Winclosel () {

Window.close ();

window.open ("index.php", "" "," fullscreen=1 ");




<body leftmargin= "0" topmargin= "0" marginwidth= "0" marginheight= "0" scroll= "no" >
<table width= "100%" border= "0" cellspacing= "0" cellpadding= "0" >

<input type= "text" value= "<?php echo $userinput?>" name= "Userinput" id= "Userinput" onclick= "Winclose ()" >



<input type= "summit" value= "<?php echo $userinput?>" name= "Jump" id= "Jump"



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.close ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.