Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

JavaScript:Tutorial, Display MsgBox


  • Please log in to reply
16 replies to this topic

#1 TcM

TcM

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 30 November 2006 - 12:15 PM

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:-
<script language="JavaScript">
function loadalert () 
        {alert("Hello!")
}
</script>

And this body code:-

<body onLoad="loadalert()">
</body>

Explanation:-
I don't think this needs any explanations!

A Preview:-
Posted Image

Conclusion:-
As Always Feedback is welcome and the full source is attached!! ( although not so needed )

Attached Files


  • 0

#2 sahar88

sahar88

    CC Lurker

  • Just Joined
  • Pip
  • 5 posts

Posted 18 February 2007 - 06:55 PM

thanks a lot ..............
  • 0

#3 amrosama

amrosama

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 2765 posts

Posted 11 October 2008 - 04:58 AM

Nice tutorial ill +rep you
  • 0

#4 TcM

TcM

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 11 October 2008 - 07:41 AM

Hehe, thanks :D

I'll be waiting
  • 0

#5 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 11 October 2008 - 08:02 AM

Wow, this is an old one. Perhaps one of your first?
  • 0

#6 TcM

TcM

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 11 October 2008 - 09:21 AM

I started with VB6... those are older than this.
  • 0

#7 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 11 October 2008 - 09:43 AM

Why is this in the wrong forum? Not in Tutorials?
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#8 TcM

TcM

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 12 October 2008 - 01:22 PM

It's not in the wrong forum! It is in tutorials!

Software Development > Tutorials > Javascript
  • 0

#9 Egz0N

Egz0N

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1155 posts

Posted 12 October 2008 - 01:27 PM

Nice One TcM .. :D
  • 0

#10 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 14 October 2008 - 11:16 AM

Woah, sorry TcM. The URL says nothing about Tutorials, I assumed it was in the normal JS forum.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#11 cb7_martyn

cb7_martyn

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 30 May 2009 - 02:39 PM

Nice post=)
  • 0

#12 cryptokyle

cryptokyle

    CC Newcomer

  • Just Joined
  • PipPip
  • 11 posts

Posted 04 June 2009 - 10:11 PM

thanks for the tutorial. clear and simple.:)
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download