Jump to content

Alert boxes


tyler

Recommended Posts

I know these are really easy but I was wondering is it possible when you enter a page (like a whole new one) can you see the alert without clicking a button as shown in the w3school tuts?If there is one can you point me in a direcion or give me a code thxs.

Link to comment
Share on other sites

An explanation:All functions (like alert() and submit() and so on) can be either called through:1. A statement: alert("blah");2. A function, called through an event, or through #1: function myFun(){alert("blah")}So, if you want the page to alert without any trigger, just put alert(). If you want a trigger, put it in a for, if, while-else, or function.Hope that helps!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...