Hello
Sorry for asking these questions. I am just a demo page ....
Note: This code does not work in IE 7, due to a security related bug. IE will ask a question you never can answer. The default behavior of IE can be changed in Tools > Internet Options > Security > Personalization. Somewhere you have to enable this JavaScript function. E.g. search for something like 'Authorize websites to prompt for information using scripted windows'.
Explanations:
- Look at the file's content source: IE: Use menu "Page-View Source", Firefox: Use "Menu View->PageSource"
- This example demonstrates how to use the built-in JavaScript prompt and confirm functions in order to display small popups
- It also introduced to important programming concepts: variables and conditionals
Exercise:
- Please edit the associated JavaScript file to change the contents of the questions asked.