Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript wit <body onload> 2

Status
Not open for further replies.

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
 
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};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top