window.top.location=url The page in the iframe can be refreshed and opened in the parent window
The window.open method can control a variety of styles. For example, we can control the size of the window display, the content of the window display, and the position, etc. One disadvantage of using window.open in js is that it is easily blocked by the browser. This article introduces various methods of opening new windows in js.
function WinOpen() { mesg =open("cnrose","DisplayWindow","toolbar=no,,menubar=no,location=no,scrollbars=no"); mesg.document.write("China asp home"); mesg.document.write("
var CW_width = 400; var CW_height = 300; var CW_top = 100; var CW_left = 100; var CW_url = "http://www.cnbruce.com/bluebook/"; var New_CW = window.createPopup(); var CW_Body = New_CW.document.body; var content = ""; var CSStext = "margin:1px;color:black; border:2pxoutset;border-style:expression_r(onmouseout=onmouseup=function(){this.style.borderStyle='outset'},onmousedown=function(){if(event.button!=2)this.style.borderStyle='inset'});background-color:buttonface;width:16px;height:14px;font-size:12px;line-height:11px;cursor:Default;";
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