Question : How do I best print on screen with JavaScript a specification of a filled-in form?

How do I best print on screen with JavaScript a specification of a filled-in form?

I need an alert also. Can I just have the alert together with the specification? In the beginning of the alert, there should be the text "The order has been submitted!", then should follow the whole specification: Personal details of the person who sent the order with name and address, names of fellow passengers, information taken from the filled-in form about departure and destination and so on, and finally the total price to be paid.

Or is it too cumbersome to layout the specification if I include it in the alert? Do I need to make a separate document (html-page?) that I link to the JavaScript function?

I want the specification not in a separate window, but in a popup-window in the same window as the form. Is it possible for me to use "document.write(linked html-page)"?

Answer : How do I best print on screen with JavaScript a specification of a filled-in form?

sorry forget to put the code..
 
Main file
 
 
Popup
 
Random Solutions  
 
programming4us programming4us