Tip: You can modify some of the code before running
<ptml> <pead><script>window.open ('.. /index.asp ', ' web effects ', ' toolbar=no,status=no,scrollbars=yes,left=100,top=50,width=250,height=50 ' </script> <title> with the main window pop-up at the same time the additional small window </title> <meta content= "text/html;" charset=gb2312 "http-equiv=" "Content-type" > <style type= "text/css" >.head {color:white; FONT-SIZE:12PX}. Text {COLOR: #4a5284; font-size:12px; line-height:20px}. info {font-size:12px; line-height:20px} A {COLOR: #4a5284; font-size:12px; Text-decoration:none} a:hover {COLOR: #ff7222; font-size:12px; Text-decoration:underline} </style> </pead> <body> <table border= "0" cellpadding= "0" cellspacing = "0" width= "100%" height= ">" <TBODY> <tr> </tr> <tr> </tr> <tr> < /tr> </TBODY> </table> <table bgcolor= "#7e85b7" border= "1" bordercolordark= "#663300" bordercolorlight= "#ffffff" cellpadding= "1" cellspacing= "2" class= "Head" width= "100%" > <TBODY> <tr align= "Middle" > </tr> </TBODY> </table> <table border= "0" cellpadding= "0 "cellspacing=" 0 "width=" 100% "> <TBODY> <tr> <td><table align=" center "border=" 0 "Cellpaddin g= "0" cellspacing= "0" class= "text" width= "482" > <TBODY> <tr> <td width= "482" ><dl > <dd align= "center" ><br> <font face= "Official script" size= "5" color= "#0000FF" > accompanying main window Popup Small window </font><br> </dd> <p> When you open a window, it automatically pops up an additional small window that indicates a new message bulletin, important message, and, of course, if you are using some Web site to provide Free space to do the homepage, general to set up such a small window to join some of the space provider's connection message, such as NetEase is doing, <font face= "song" > Pop-up additional Small window has various forms, such as no toolbar, no scroll bar, in fact, the production is not difficult, &L T;/font> here, the way to provide the overall, you can reload this page, or click the toolbar button "Refresh", try, the effect is not bad! </p> <p> Click on a link to open a new window, and the new window is different from the General browser window, looks very simple and refreshing? <br> In fact, this is not very complex, with a script language function can be, this is the Window object open function, give you a detailed talk about the specific use of this function! <br> 1, open window: <br> var hwnd=window.open (' File URL ', ' Window name ', ' window feature option '), now one by one tells <br> hWnd: If you are familiar with window programming, it is not unfamiliar to it, it represents a window handle, representing the Window object, script programming is useful, through which you can implement the control of the child window in the parent window. <br> file URL: Indicates the URL of the file you want to open, if you open the file on the local server available relative path, otherwise you must use the URL path. <br> window Name: Indicates the name of the open window, this parameter may not be, but if you are programming in scripting language need to pass some information or parameters between two windows, we can use Window.name to get the parameter value passed. <br> window feature options its writing format is: option1= value, option2= value, option3= value <br> attribute values mainly include the following: </p> <p> Options Numerical Significance <br> Toolbar Yes/no window whether there is toolbar <br> Location yes/no window display Address bar < Whether the Br> Directories yes/no window provides a table of contents buttons <br> Status yes/no window at the bottom shows the status bar <br> menubar Whether the Yes/no window has a menu bar <br> scrollbars yes/no whether the window allows scroll bars <br> resizable yes/no windows to be allowed to appear when the content is not finished Zoom <br> Width integer value (integral) window width <br> Height integer value (integer) window <br> left integer value (integer) window The distance from the left side of the screen is coordinates x (the top left-hand corner of the screen is 0,0) <br> The distance from the top integer value (integer) window from the front of the screen is coordinates y </p> <p> Well, the most commonly used feature values in the top are Toolbar,scrollbars,width,heigth,top,le FT wait, you might as well try one, give an example (written in JavaScript): <br> var mywindow=window.open (' test.html ', ' Web Tao '), ' toolbar=no,status=no,scrollbars=yes,left=100,top=50,width=500,height=450 ') <br> 2, close window: <br> If you shut yourself down in the current window, you can use the Close function of the Window object <br> format is: Window.close () <br> If you close a child window in a parent window, it is formatted with a child window handle of <br>. Close () <br> A window that is opened by an example that closes the top is available: mywindow.cl OSE () <br> as for clicking on a link to open a new window, one thing to notice is that link flags can link not only files, but also script statements. <br> </p> </dl> </td> </tr> </TBODY> </TABLE&G T </td> </tr> </TBODY> </table> <p align= "center" ><br> </p> </body> </ptml>
Tip: You can modify some of the code before running