Source |
CodingSec |
Identifiant |
4056 |
Date de publication |
2016-07-14 16:00:28 (vue: 2016-07-14 16:00:28) |
Titre |
How to perform IO in javascript |
Texte |
Input and Output in JavaScript JavaScript models the HTML/XHTML document as the document object and the browser window which displays the HTML/XHTML document as thewindow object. The document object contains a method named write tooutput text and data on to the document as shown below: document.write(“Welcome to JavaScript”); To display multiple lines of text using the write method, include the HTML tag <br /> as a part of the string parameter as shown below: document.write(“Welcome<br />to<br />JavaScript”); The output of the above code on the document will be as shown below: Welcome to JavaScript Although the document object has another |
Envoyé |
Oui |
Condensat |
<br /> />javascript†/>to<br above although another appeared below: browser code coding contains data display displays document first has how html html/xhtml include input javascript javascript†lines method models multiple named object output parameter part perform post security shown string tag text thewindow tooutput using welcome which will window write “welcome “welcome<br |
Tags |
|
Stories |
|
Notes |
★★★
|
Move |
|