Home >Web Front-end >HTML Tutorial >html uses a hyperlink to open a new window and its controllable window properties_HTML/Xhtml_Web page production

html uses a hyperlink to open a new window and its controllable window properties_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:36:432089browse

1. The window size opened by the html hyperlink

Copy the code
The code is as follows:

2. If in php , there are many quotation marks and it is difficult to remove them. You can use the following method:

Copy the code
The code is as follows:

$openNew="onclick=".'"'."javascript:window.open('host_graphics.php?host_id=$host_id&host_address=$host_address','','height=500,width=600, top=300,left=300,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')".'"';
echo " $host_name "; //Click on the host name to view the specific information of the selected host

Tip: onclick="javascript:window .open('12.php','','height=500,width=600,top=300,left=300,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status =no')"

The file can be followed by the value of the variable, such as

host_graphics.php?host_id=$host_id&host_address=$host_address

In this case, the new You can use GET to get the value in the window.

3. Example:

Copy code
The code is as follows:





ThD


< ;/body>
aaaaaaaaaaaaaaa

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn