0% found this document useful (0 votes)
22 views

Assignment 1

Uploaded by

detoc49752
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Assignment 1

Uploaded by

detoc49752
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

COURSE COMP125

ASSIGNMENT #1 – 10 Marks
Due Date: Please refer to eCentennial

JavaScript Loops (Refer to the demo done in class for the assignment)

Create an HTML document called YourName_Assignment1.html that implements a


webpage that dynamically creates (using JavaScript code) a HTML table and displays in
each cell the row number & column number. Allow the user to input the number of rows
and columns and develop the table accordingly.

Follow these guidelines to implement your assignment:


1. Create a JavaScript file called YourName_Assignment1.js and write the code
for a function that generates the table.( 50% of the grade)
2. Invoke the function when the user visits the assignment1.html page.
3. Accept user input for the number of rows and columns in the table. Use these
values to populate the table when submit button is clicked(30% of the grade)
4. Use good web design practices to enhance visually your html page. Add proper
margins, borders, title, colors, copyright line, etc. (20% of the grade)

Basic screenshots for the functionality of this assignment are shown below:

Submission Rules:
 Submit your HTML,CSS, JS files as a .zip file to eCentennial.
 Also, upload the screenshot of the output as .doc file (Please don’t zip this file).

You might also like