Question

5 -​Create a web page that contains JavaScript code as discussed in class. ​Your page should...

5 -​Create a web page that contains JavaScript code as discussed in class.
​Your page should use the defaults for color, font face and font size.
​Count the numbers from 1 to 50. Skip 1 blank space between each value. You must use a ​for() loop

Homework Answers

Answer #1

Below is the html Code for required webpage , in below code no CSS applied as it uses default webpage styles:-

<!DOCTYPE html>
<html>
<body>
<!-- count values will add in below paragraph element -->
<p id="count"></p>

</body>
<script type="text/javascript">
window.onload = function() {
//below loop count the numbers from 1-50 and show in webpage element
    for (var i = 1; i <= 50; i++) {
        document.getElementById("count").append(i+" ");
}

};
  
</script>
</html>

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Create a web page as follows: Title is "Fun With Links" Body background color is cyan...
Create a web page as follows: Title is "Fun With Links" Body background color is cyan The margin for the body should be 10% The font-size for the body should be 2em A Heading 1 tag contain the phrase Education is Key A paragraph with the sentence Quincy College is best in class. The last part of the sentence "best in class" should be a hyperlink to the URL https://quincycollege.edu/bestinclass/
Need this done using PHP code and not javascript Create a PHP form with a textarea...
Need this done using PHP code and not javascript Create a PHP form with a textarea field input and a submit button. The textarea field should be able to accept up to 250 characters. When the user clicks the Submit button, read the text in the textarea and display the following results on a web age. At the bottom of the page include a link back to the form. Number of characters: Number of words: (hint: explode the string into...
The following is from a web page on April 20 that discussed a Stanford study of...
The following is from a web page on April 20 that discussed a Stanford study of percentage of population contracting Covid-19. (Disclaimer: do not treat what you read as factual just because a site has “news” in its title). Please read the paragraphs and answer the question at the end. https://www.mercurynews.com/2020/04/20/feud-over-stanford-coronavirus-study-the-authors-oweus-all-an-apology/ One major problem with the Santa Clara County study relates to test specificity. It used a kit purchased from Premier Biotech, based in Minneapolis with known performance data discrepancies...
For this assignment, create an html page that has a login form. The form should have...
For this assignment, create an html page that has a login form. The form should have 3 input elements -- 1. This should have a type text for the user to enter UserName 2. This should have a type password (like text except cannot see the text that is typed in), for the user to enter password. 3. Submit button (type submit, as we did in class on 2/6). The form method should be set to POST and the action...
I have trouble in my code with - Create and append the fancySheet link element to...
I have trouble in my code with - Create and append the fancySheet link element to the document head - Create and append figBox element to element with id box - Populate the figure box with preview images of the five fancy style sheets I don't understand what went wrong. New Perspectives HMTL5, CSS3, and JavaScript T12 Case Problem 1: New Accents Photography JavaScript File Event Listener Go to the na_styler.js file in your editor. Add an event listener that...
#5. You can find 20 RANDOM NUMBERS in a Table or you can generate them with...
#5. You can find 20 RANDOM NUMBERS in a Table or you can generate them with software like Excel. The Excel functions are “RAND” and “RANDBETWEEN”. With “Randbetween” you simply input how many numbers you want, the number of digits you want in your random number and the range of values you want those numbers to fall between. For example you may want twenty, 2-digit numbers that fall between 00 and 100 (like “34”). TWO CONSIDERATIONS: (1) You must systematically...
Assignment Statement Use the skeleton file starter code (below) to create the following classes using inheritance:...
Assignment Statement Use the skeleton file starter code (below) to create the following classes using inheritance: ⦁   A base class called Pet ⦁   A mix-in class called Jumper ⦁   A Dog class and a Cat class that each inherit from Pet and jumper ⦁   Two classes that inherit from Dog: BigDog and SmallDog ⦁   One classes that inherit from Cat: HouseCat The general skeleton of the Pet, Dog, and BigDog classes will be given to you (see below, "Skeleton", but...
Uses a while loop to print the numbers from 3 - 19. Uses a do-while loop...
Uses a while loop to print the numbers from 3 - 19. Uses a do-while loop to print the numbers from 42 - 56. Uses a for loop to print the numbers from 87 - 95. Asks the user for 2 numbers. Uses a loop to print all numbers between the given numbers, inclusive. Note: Consider that your user's second number can be lower! (see example below) Note: Also consider that your user might give you two of the same...
Cpp Task: Create a class called Mixed. Objects of type Mixed will store and manage rational...
Cpp Task: Create a class called Mixed. Objects of type Mixed will store and manage rational numbers in a mixed number format (integer part and a fraction part). Details and Requirements Your class must allow for storage of rational numbers in a mixed number format. Remember that a mixed number consists of an integer part and a fraction part (like 3 1/2 – “three and one-half”). The Mixed class must allow for both positive and negative mixed number values. A...
please write the code in java so it can run on jGRASP import java.util.Scanner; 2 import...
please write the code in java so it can run on jGRASP import java.util.Scanner; 2 import java.io.*; //This imports input and output (io) classes that we use 3 //to read and write to files. The * is the wildcard that will 4 //make all of the io classes available if I need them 5 //It saves me from having to import each io class separately. 6 /** 7 This program reads numbers from a file, calculates the 8 mean (average)...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT