Web programming

Units WEB1P and WEB2P

Practical JS4

This practical will take a look at form validation. These questions will consolidate the techniques introduced in the lecture and build further on the use of regular expressions. When you have completed this tutorial please spend your time experimenting with developing further scripts using the techniques you have learnt to date and others from the textbook.
  1. Create a web page with a customized clock to display the date and time
  2. Create a page that greets your visitor with a time-appropriate message e.g. Good morning, its bedtime etc.
  3. Create a page that counts the seconds, minutes, hours and days until Christmas.
  4. Look at the input form script you wrote in practical 3 and add a field that contains the time the user spends on that page. This can give the recipient of the form some data on how long it takes the user to complete the form. This can be useful in refining the input fields.
 

Last updated by Prof Jim Briggs of the School of Computing at the University of Portsmouth

 
The web programming units include some material that was formerly part of the WPRMP, WECPP, WPSSM and WEMAM units.