answersLogoWhite

0

You need to put the strings in an array, and then loop through the array to output the strings. Something like this would be a simple example: ---------------- var strings = ["s1","s2","s3"]; for ( var i in strings ) { document.write( strings[i] ); }

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How do you write a program that outputs a given characters in reverse?

write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)


How do you write a javascript?

go to notepad and write Javascript code and save it as .js and then import it into a page with a src tag


How do you write HTML codes and javascript events together in your HTML kit?

You need to write the HTML code in the tag format. If you want to write JavaScript put it in <script> tag.


What is embedding java script?

To embed JavaScript code is to include it in the HTML page. For example, this will embed the code to display an alert: <script type="text/javascript"> alert("Embedded alert!"); </script>


What is the difference between Javascript and Jquery?

JavaScript is a scripting language that is mainly used within a web browser. Jquery is a library of javascript code that can be used together with your javascript program. A set of functions that can preform common tasks is provided, which will reduce the amount of code that you have to write yourself.


How do you write a JavaScript on the internet?

To start a JavaScript code: <script type="text/javascript"> CODE </script> There is a lot to do on JavaScript if you want to learn it look on: http://www.w3schools.com under the Javascript Section.


What is the command to display HTML page through javascript?

If you're planning on linking to another page, all you have to write is: document.location = "yourNewURL"; If you want to generate Javascript, then you can either use: document.write("your HTML Code"); OR send the HTML code to an existing object in an HTML page, like so: document.getElementById['targetElement'].innerHTML = "your HTML Code here"; ----------------- That's pretty much it. If you want me to elaborate, please let me know. :)


What is a javascript tutorial?

A JavaScript tutorial contains instructions that will teach you how to code in JavaScript.


Where can one find more information about Javascript strings?

One can find more information about JavaScript strings from several places. One can look at the JavaScript website. One would also do well to look up JavaScript strings on Stack Overflow, which has many resources for answering questions about programming topics.


A javascript code to add no of digts present in number?

Use the length property for strings ex: return number.length; If there are commas then you can use ascii codes to filter those out


Is jQuery a high level language?

jQuery is like an advanced JavaScript code. jQuery is a JavaScript code library that gives you more features with less code that what Javascript would require. If you understand JavaScript, jQuery wouldn't be much of a change.


Write an ASP code that will display the source code of the web page in the browser window?

Write an ASP code that will dislplay the source code of the web page in the Browser window.