Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2013
    Thanked 0 Times in 0 Posts

    Unhappy JavaScript Problem

    Hello, I'm very new to the whole JavaScript.

    I ran into a little problem which most of you will be able to look at and laught.

    I'm attaching a flow chart with some inputs.

    I need to write a code using document.write statement, use a loop to loop through numbers from 1 to 5

    And have a similar output as the second screen but not exact.

    I would appreciate your help and a break down.

    So far I have

    PHP Code:
    <script type="text/javascript">

    document.write("My Name");


  2. #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    London, England
    Thanked 2,699 Times in 2,675 Posts
    Please have a look at forum rule #1.5. This forum is not a free coding service. As a general rule, the people helping out in this forum don't write code for others (especially code that appears to be for homework), but try to help with fixing code that doesn't work. You may perhaps get someone to write this script for you, but you'll be far more likely to get help if you have made a substantial effort and written some code yourself. Then someone here will almost certainly help you correct/improve your work.

    Be aware that document.write() is obsolete. There are far better methods of displaying the output of your script.

    Quizmaster: The Washington Monument commemorates which man?
    Contestant: Abraham Lincoln

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts