May 28, 2004 #1 milams Programmer May 28, 2004 32 US Hi, I'm trying to get an alert box to come up when the page is loaded. below is the code I am using. <body onload="javascript:window.alert('This is a Test')"> Is this correct? if not, can somebody tell what I did wrong? Milams
Hi, I'm trying to get an alert box to come up when the page is loaded. below is the code I am using. <body onload="javascript:window.alert('This is a Test')"> Is this correct? if not, can somebody tell what I did wrong? Milams
May 28, 2004 1 #2 adam0101 Programmer Jun 25, 2002 1,952 US Put it in a web page and run it. If you see a little box that says 'This is a Test', my guess is that it works. Adam while(ignorance){perpetuate(violence,fear,hatred);life=life-1}; Upvote 0 Downvote
Put it in a web page and run it. If you see a little box that says 'This is a Test', my guess is that it works. Adam while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
Jun 1, 2004 1 #3 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB You do not need to specify the "javascript:" part - it is implied. Hope this helps, Dan Upvote 0 Downvote