tyler Posted August 6, 2006 Share Posted August 6, 2006 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 More sharing options...
Webworldx Posted August 6, 2006 Share Posted August 6, 2006 Just add<script type='text/javascript'>alert('Some Text Here');</script>Into your HTML somewhere Link to comment Share on other sites More sharing options...
Chocolate570 Posted August 6, 2006 Share Posted August 6, 2006 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 More sharing options...
tyler Posted August 6, 2006 Author Share Posted August 6, 2006 Yes Both of these help tremendously. Thank you both. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now