473,413 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

How to correct this Javascript program?

sreekandank
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. var i;
  5. while(i<=10)
  6. {
  7. document.writeln(i);
  8. }
  9. i++;
  10. </script>
  11. </head>
  12. </html>
  13.  
I have written the above code...But that script not executed on Internet Explorer...So kindly correct that code and reply me...
Jul 14 '09 #1
2 1199
JosAH
11,448 Expert 8TB
This is the Java forum and Java hasn't much in common with Javascript; I'll move your question over to the appropriate forum.

kind regards,

Jos (moderator)
Jul 14 '09 #2
gits
5,390 Expert Mod 4TB
neither it is executed in any other browser ... since it is just wrong - have a look at the corrected example:

Expand|Select|Wrap|Line Numbers
  1. var i = 0;
  2.  
  3. while ( i <= 10 ) {
  4.     document.write(i);
  5.     i++;
  6. }
  7.  
Jul 14 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: John D | last post by:
I have a web page that attempts to call a piece of Javascript, which attempts to transform an xml file and an xslt file into Html. The call is here (A) : <script language = "JavaScript" src =...
3
by: f700b | last post by:
I have the bellow javascript code. I know the username and the password , and I like to modify this code for login without press intro. It is possible?. Thanks --------------------------------...
2
by: nyy | last post by:
This is a program that is supposed to save the user name and password in cookies, and when the user comes back to login and he enters the same user name and password, a pop up message welcome him...
12
by: kim | last post by:
The c program is an example and should be correct. I tried to compile the c file with MS studio 6.0. But failed with the several err and warning messages. Does anyone know how to make it work?...
14
by: electrician | last post by:
While running a program that exceeds the array limits it issues an alert. I want to then stop the program after filling in the output boxes with blanks. How do you stop the program? I have...
3
by: The alMIGHTY N | last post by:
I was wondering if anyone else has had an experience like this. I have a Java function about 75 lines long. It's not very complicated... nothing fancy... just dynamically building SELECT menus and...
4
by: davidson1 | last post by:
Hai Friends, I have a javascript program , as a snow a single picture will fall from above to below in the browser.It is worked properly when my friend was using.Sudennly it is...
8
by: jamesw23 | last post by:
I want to make a program using javascript that calculates the tax (at different price levels) on several different items. For instance, the user could enter in 5-6 different prices through a prompt,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.