Dim strscript as string = "<script language = 'vbscript'>" & vbcrlf
Strscript & = "opener.parent.doc ument. Location. href =" "&".../individual/userjobs. aspx? Entitytableid = "& request (" entitytableid ") &" & listid = "& BLL. tabletype. entity & "& orgid =" & request ("orgid") & "& tableid =" & orightgroupaccesstableview. templatetable. tableid & IIF (Request ("recordid") is nothing, "", "& recordid =" & request ("recordid") & "" & vbcrlf
Strscript & = "</SCRIPT>" & vbcrlf
Response. Write (strscript)
// Close. The parent window dialog box is displayed, and the Child window is closed directly.
This. response. Write ("<script language = JavaScript> window. Close (); </SCRIPT> ");
// Close. The parent window and Child Window are not displayed. Close them directly.
This. response. Write ("<SCRIPT> ");
This. response. Write ("{top. Opener = NULL; top. Close ();}");
This. response. Write ("</SCRIPT> ");
// In the pop-up window, refresh the current page width = 200 Height = 200 menu. Menu Bar, tool bar, address bar, and status bar none
This. response. write ("<script language = JavaScript> window. open ('rows. aspx ', 'newwindow', 'width = 200, Height = 200') </SCRIPT> ");
// Refresh the current page in the pop-up window
This. response. Write ("<script language = JavaScript> window. Open ('rows. aspx ') </SCRIPT> ");
This. response. Write ("<SCRIPT> window. Open ('webform2. aspx ',' _ blank '); </SCRIPT> ");
// In the pop-up window, jump to the webform2.aspx page (in an IE window)
This. response. write ("<script language = JavaScript> alert ('registered successfully'); window. window. location. href = 'webform2. aspx '; </SCRIPT> ");
// Close the current Child Window and refresh the parent window
This. response. Write ("<SCRIPT> window. opener. Location. href = Window. opener. Location. href; window. Close (); </SCRIPT> ");
This. response. Write ("<SCRIPT> zookeeper opener.location.replace(w.w.opener.doc ument. referrer); window. Close (); </SCRIPT> ");
// Refresh the parent window in the Child Window
This. response. Write ("<SCRIPT> window. opener. Location. href = Window. opener. Location. href; </SCRIPT> ");
This. response. Write ("<SCRIPT> window. opener. Location. href = 'webform1. aspx '; </SCRIPT> ");
// A prompt window is displayed. After confirmation, A subwindow (webform2.aspx) is displayed)
This. response. Write ("<script language = 'javascript '> alert (' published successfully! '); Window. Open ('webform2. aspx') </SCRIPT> ");
// A prompt window is displayed. After confirmation, refresh the parent window.
This. response. Write ("<SCRIPT> alert ('published successfully! '); Window. opener. Location. href = Window. opener. Location. href; </SCRIPT> ");
// The Same page is displayed.
<Input type = "button" value = "button">
//
Response. Write ("parent. mainframebottom. Location. href = 'yourwebform. aspx? Temp = "+ STR + "';");
<Script language = "JavaScript">
<! --
Window. open ('page.html ', 'newwindow', 'height = 100, width = 400, Top = 0, Left = 0, toolbar = No, menubar = No, scrollbars = No, resizable = No, location = n o, status = no') // write a line
-->
</SCRIPT>
Parameter description:
<Script language = "JavaScript"> the JS script starts;
Window. Open command to pop up a new window;
'Page.html 'name of the pop-up window;
'Newwindow' indicates the name of the pop-up window (not the file name). It is optional and can be replaced by null;
Height = 100 window height;
Width = 400 window width;
Top = the pixel value between the 0 window and the top of the screen;
Left = 0 the pixel value between the window and the left of the screen;
Toolbar = No indicates whether to display the toolbar. Yes indicates display;
Menubar and scrollbars indicate the menu bar and scroll bar.
Resizable = No: whether to change the window size. Yes: Yes;
Location = No indicates whether the address bar is displayed. Yes indicates yes;
Status = No whether to display the information in the status bar (usually the file has been opened), yes is allowed;
</SCRIPT> end of JS script
'Newwin': hides the toolbar in the menu bar's address bar.
Width = 50: width
Height = 50: Height
Scrollbars = yes/no: scroll bar
Top = 50: the window is above the screen
Left = 50: the window is located at the left of the screen.
Example: window. Open ('detail. aspx? Id = "+ E. item. cells [1]. text + "', 'newwin', 'width = 750, Height = 600, scrollbars = Yes, Top = 50, Left = 50 ');");
This. response. write ("<SCRIPT> window. open ('webform2. aspx ', '', 'toolbar = No, location = No, directories = No, status = No, menubar = No, scrollbars = No, resizable = Yes, width = 750, height = 470, Left = 80, Top = 40'); </SCRIPT> ");
Example:
This. response. Write ("<SCRIPT> alert ('published successfully! '); Window. opener. Location. href = Window. opener. Location. href; </SCRIPT> ");
This. response. Write ("<SCRIPT> ");
This. response. Write ("{top. Opener = NULL; top. Close ();}");
This. response. Write ("</SCRIPT> ");
Example: linkcolumn1.datanavigateurlformatstring = "javascript: varwin = Window. Open ('edit _ USR. aspx? Actid = {0} ', 'newwin', 'width = 750, Height = 600, scrollbars = Yes, Top = 50, Left = 50'); window. close ()";
Mainframe. Attributes. Add ("src", treeview1.selectedvalue. tostring ());