English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Alert() stops the underlying javascript from continuing until the user clicks on the alert button. This stops a timer that I have on the main javascript which is no good for me. Is there anything that I can use that shows a message but does not stop the underlying script?

A window.open is no good if the end user has popups blocked.

2006-10-27 03:16:27 · 2 answers · asked by Jason W 1 in Computers & Internet Programming & Design

2 answers

Create and style a div to look like an alert. Then its a matter of using DOM Scripting to dynamically assemble and display the div (positioned absolutely on a page). That way the javascript is not halted by the modality, and your code can continue.

2006-10-27 03:24:15 · answer #1 · answered by Isofarro 3 · 1 0

You might want to look at the Yahoo UI Logger, which will enable you to log messages to a console without interrupting program flow. It's not a popup, but it might do what you want.

2006-10-27 11:45:48 · answer #2 · answered by Daniel R 6 · 0 0

fedest.com, questions and answers