I added a prompt on my page but it loads before the page has loaded. How do I only show the message once the whole page is visible?
Here is my prompt:
if (name == null || name == "") {
txt == "No name provided";
} else {
txt = "Hello, " + name + "! How are you today?";
}
alert(txt);