Title JavaScript Window Function Guide Writing Content HKTL in Window HKTL (Repost) Keyword JavaScript Window Function Http://www.ccidnet.com/tech/web/2001/01/19/58_1612.html
JavaScript Window Features Guide to Writing in the window contents (Author: hear the wind compiled in January 2001 on 19 Ri 11:35) window.open () method to open a new window, document.open () method to open a new document, in which You can write content using the write () or Writeln () method, its syntax is: OnewDoc = Document.Open (sminalype [, SREPLACE]); SminalType is a string that defines the MIME type. Navigator supports several different MIME types, but Internet Explorer only supports "text / html". The SMINTYPE parameter is optional. The second parameter is also a string, which defines whether the new document written is to replace the location of the current document in the history. If you want to replace the replacement, use the string "Replace". "Replace" is basically used to have a window with an empty document or an "About: Blank" URL. When "Replace" is defined, the Write () method can create HTML content in this window and replace the location of the current URL in the history. If "Replace" is not defined, the established HTML has its own historical position, and the user can click the back button until it is air. Take a look at the script block below: VAR OnewDoc = Document.Open ("text / html", "replace"); var smarkup = "