Instructions: In this assignment you will modify the HTML pages you have developed for the fictitious company The Great DVD in such a way that users will be re-routed to a splash page the first time they visit any page on the site. To do this you will need to save state information on the client browser using cookies. In particular, you should:

  1. Write and test:


    1. A JavaScript function loadSplashPage.js that loads the splash page when appropriate.


    2. A splash page (i.e., a page that you want first-time users to see).


    3. Modifications to the HTML pages that you developed in Assignment 1, Assignment 2, and Assignment 3 to make use of loadSplashPage.


  2. Discuss how the function loadSplashPage could/should be modified to make it more user-friendly.


  3. Discuss the advantages and disadvantages of saving this kind of state information on the client versus saving it on the server.


You may use any books or notes at your disposal, but you should work entirely on your own.