Home > Article > Computer Tutorials > How to maximize the new window that pops up in IE
How to directly maximize the new window that pops up in IE?
To directly maximize the new window that pops up in IE (Internet Explorer), you can add JavaScript code to the link or use HTML attributes. Here's a brief description of both methods:
Using JavaScript code:
In HTML, this can be done by onclicking the link
Add JavaScript code in the event to maximize the new window. The sample code is as follows:
<a href="https://example.com" target="_blank" onclick="window.open(this.href, '_blank', 'fullscreen=yes'); return false;">打开新窗口</a>
window.open()
function is used to open a new window by setting fullscreen= in the third parameter yes
to achieve maximum. Use HTML attributes:
You can use HTML attributes directly in the linktarget="_blank"
and fullscreen="yes"
to maximize the new window. The sample code is as follows:
<a href="https://example.com" target="_blank" fullscreen="yes">打开新窗口</a>
target="_blank"
means opening the link in a new window, while fullscreen="yes"
Indicates that the new window is directly maximized. Summary:
To directly maximize the new window that pops up in IE, you can use JavaScript code or HTML attributes. By adding the window.open()
function and setting the parameters in the link's onclick
event, or using target="_blank"
and ## directly in the link #fullscreen="yes", you can maximize the effect of the new window. Choose one of the methods to directly maximize the new window opened in IE according to actual needs.
The above is the detailed content of How to maximize the new window that pops up in IE. For more information, please follow other related articles on the PHP Chinese website!