This embedded JavaScrip dialog has two problems: it pop-ups over the page (inconvenient), looks ugly, depends on the browser/system and is not flexible.
One better solution is the jQuery UI dialog which implement modal behavior within the page:
https://jqueryui.com/dialog[
^].
You can also use one of the many 3rd-party jQuery UI plug-ins based on similar principle and offering all kinds of visual effects and options, notably, dimming the rest of the page. Such solutions are usually referred by the common name "modal popup" You will find more than enough of them:
http://bit.ly/1DpajUJ[
^].
Congratulations with 1st of April! :-)
I would like to use the occasion to invite everyone to see my new 1 of April publication and have some fun:
Some Programming Approaches to "Neuro-Linguistic Programming".
Participation in this game in Comments and Discussions is especially encouraged.
Thank you.
—SA