Forbrukslån på Dagen uten Sikkerhet | Sähkösopimukset | Beste Rabatt Kredittkort | Strømpriser | Sammenlign Hyttealarm | Barneforsikring | Billig Mobilabonnement | Godis på Nett
JavaScript programming

Why JavaScript web page to display text?

Written by Tusher

Many might think that when a question by HTML text can be displayed on any Web page, then we’ll use JavaScript to display, why write? HTML of a web page can not be displayed in any written JavaScript is used to display the dynamic text. HTML is not a programming Guadalajara because so many different kinds of HTML data, variables, operators, etc. does not work. The JavaScript programming language and data, variables, operators, etc., according to statements made by using work. JavaScript is so dynamic data to work with. Greet the name of a variable var greet = “Welcome to”; Welcome to the string was similar; Now Welcome to, Welcome to ,and three three-line text display Welcome to will levy. The document.write (greet + “ <br />”); document.write (greet + “ <br />”); document.write (greet + “”); Welcome to greet preregistration variables used by radarscope text which is not possible with HTML.

Practice Project:

body{background: #FFC;

<script type=”text/javascript”>
var greet = “Welcome to “;
document.write( greet + “ <br />” );
document.write( greet + “ <br />” );


Notepad to open a file type from the menu at the top of layer code by clicking on the Save as File name: index.html, Save as type: All files, save and open the index.html file with the Mozilla Firefox look like the image shown below.

Welcome to

Welcome to

About the author