Web server hosting - 334 . Chapter 19 B Fontdocument.write, also accessible
Friday, November 30th, 2007334 . Chapter 19 B Fontdocument.write, also accessible as window.document.write, can be used from either a plain script () or from an event handler. Bear in mind that event handler scripts are executed only after the HTML source has been through layout. The write() method implicitly opens a new document of mimeType text/html if you do not explicitly invoke a document.open() method prior to the document.write() call. The writeln() method acts exactly like the write() method, except that it appends a new line character to the end of the output. HTML generally ignores this character, but certain tags, such as
, use it:one two threeAfter interpretation, the web page appears as: one two three You can create the same output via JavaScript in the following fashion: document.write(”“) document.writeln(”one”) document.writeln(”two”) document.writeln(”three”) document.write(”“) Data Streams The document.open() method opens a stream to collect the output of write() and writeln() methods. Its general syntax is: document.open([”mimeType”]) mimeType specifies the type of document, which is one of the following: text/html text/plain image/gif image/jpeg image/x-bitmap plugIn plugIn is any two-part plug-in supported by the user s browser. Generally speaking, if mimeType is text or image, the stream is opened to layout, which is generated by instructions from the browser. Otherwise, the stream is opened to a target plug-in which you have to make sure understands the data you provide.
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.