This. response. write ("<Script> window. open ('webform7. aspx ', '', 'toolbar = no, location = no, directories = no, status = no, menubar = no, scrollbars = no, resizable = yes, width = 750, height = 470, left = 80, top = 40'); </script> ");
Whether the pop-up is related to the menu toolbar of your current window. You only need to write a script on the page and it will pop up. For example
<A href = # onclick = "window. open ('XXX. aspx ', 'window name', 'parameter');"> xxxxx </a>
The following lists the parameters in the pop-up window. You can set them by yourself. The parameters are separated by commas.
Optional. String-List object tables and separate them with commas. Each item has its own value, which will be separated (for example, "fullscreen = yes, toolbar = yes "). The following are supported features.
Channelmode = {yes | no | 1 | 0} indicates whether the tier mode is displayed in the window. The default value is no.
Directories = {yes | no | 1 | 0} whether various buttons are displayed in the window. The default value is yes.
Fullscreen = {yes | no | 1 | 0} whether to display the browser in full screen mode. The default value is no. Be careful when using this feature. This property may hide the title bar and menu of the browser. You must provide a button or other prompt to help the user close the browser window. ALT + F4 can close the window. A full screen window must be in the channelmode mode.
Height = number indicates the window height, in pixels. Minimum value: 100.
Left = number indicates the distance from the window to the left border, in pixels. The value must be greater than or equal to 0.
Location = {yes | no | 1 | 0} specifies whether to display the address bar in the window. The default value is yes.
Menubar = {yes | no | 1 | 0} specifies whether to display the menu bar in the window. The default value is yes.
Resizable = {yes | no | 1 | 0} specifies whether to display the handle that can be adjusted in the window. The default value is yes.
Scrollbars = {yes | no | 1 | 0} specifies whether the horizontal or vertical scroll bar is displayed in the window. The default value is yes.
Status = {yes | no | 1 | 0} specifies whether to display the status bar in the window. The default value is yes.
Titlebar = {yes | no | 1 | 0} specifies whether to display the title bar in the window. This option is ignored when HTML Application or a dialog box is not called. The default value is yes.
Toolbar = {yes | no | 1 | 0} specifies whether to display the toolbar in the window, including buttons such as forward, backward, and stop. The default value is yes.
Top = number specifies the position at the top of the window, in pixels. The value must be greater than or equal to 0.
Width = number indicates the window width in pixels. Minimum value: 100.
[1. The most basic pop-up window code]
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.