Javascript

Sunday, January 12, 2014

JavaScript Do While Loop Example.

<html>
<body>
<script>
var m=5;
do
{
document.write(m+"<br>");
m++;
}while (m<=10);
</script>
</body>
<html>
Posted by MaHii Babariya at 7:28 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2014 (28)
    • ►  December (1)
    • ▼  January (27)
      • Example of innerText.
      • innerHTML example.
      • Another Example of getElementByTagName() method.
      • getElementByTagName() method example :-
      • document.getElementByName() method example.
      • document.getElementById() method example.
      • Example of document object that prints name with w...
      • Example of document object getElementById().
      • Window object 5) setTimeout()
      • Window object 4) open()
      • Window object 3) prompt()
      • Window object 2) confirm()
      • Window object 1) alert()
      • JavaScript function (methods)
      • JavaScript Do While Loop Example.
      • JavaScript While loop example.
      • JavaScript for loop example.
      • Switch case example in JavaScript.
      • JavaScript If/else Example
      • Another example of "Global Variable" in JavaScript
      • Types of variables in JavaScript
      • JavaScript Variable
      • JavaScript Comment
      • The external JavaScript file and embed it in html ...
      • Using javascript code between the head tag of webp...
      • 2) Example of Alert
      • First WebPage using Javascript

About Me

MaHii Babariya
View my complete profile
Picture Window theme. Powered by Blogger.