This article mainly introduces how to use html to open a new window with a hyperlink and its controllable window properties. It mainly uses the window.open method of js. Interested friends can take a look.
1. html The size of the window opened by the hyperlink
aaaaaaaaaaaaaaa
2. If there are many quotation marks in php, it is difficult to remove them. You can use the following method:
$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 "; //主机名 点击可查看选中主机的具体信息
Tips: 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, you can use GET to obtain the value in the new window that pops up.
3. Example:
ThD aaaaaaaaaaaaaaa
For more html, use a hyperlink to open a new window and its controllable window properties. For related articles, please pay attention to the PHP Chinese website!