View Single Post
  #1 (permalink)  
Old 11-30-2006, 02:15 PM
TcM's Avatar   
TcM TcM is offline
Moderator
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 7,360
Rep Power: 67
TcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud of
Default JavaScript:Tutorial, Display MsgBox

Introduction:-
Well I'm trying to start a whole set of JavaScript tutorials and this is the first one.. simple and short!

Solution:-
Just make this code in the <head> tags:-
Code:
<script language="JavaScript">
function loadalert () 
        {alert("Hello!")
}
</script>
And this body code:-

Code:
<body onLoad="loadalert()">
</body>
Explanation:-
I don't think this needs any explanations!

A Preview:-


Conclusion:-
As Always Feedback is welcome and the full source is attached!! ( although not so needed )
Attached Files To view attachments your post count must be 1 or greater. Your post count is 0 momentarily.

Last edited by TcM; 12-02-2006 at 12:53 PM.
Reply With Quote

Sponsored Links