FILS, English Stream, Year 4

Course: Web Application Development

Prof. Luca Dan Serbanati

Assist. Prof. Vlad Posea

 

Second laboratory

HTML with JavaScript Programming

 

1. Write a HTML page with a form which is displayed by your browser as in the following figure (apologizes for the Italian text! It’s easy to translate it in English or Romanian.) .  

 

 

The page contain a <FORM> structure.

The two buttons are “Inserire dati” (Submit button) and “Ripristinare dati” (Cancel button). 

 

2. Write a JavaScript script which receives a circle radius as a parameter and writes the diameter, circumference and area of the circle. (Use 3.14159 for p or Math.PI) in the HTML page.

 

3. Using only programming techniques write a script which computes the squares and cubes of all numbers between 0 and 10, writing it in a table as in the followings:

 

            number          square            cube

            0                      0                      0

            1                      1                      1

            2                      4                      8

            3                      9                      27

            . . . . .