August 18, 2009

Javascript Tutorial 9: Functions


function sayhi()
{
alert ("say a message");
}

vishnu()


Shows up a message with "say a message" line.


function sayhi()
{
alert ("say a message");
}

vishnu()
alert ("this is a message to you, please read");
say();

At this two popups come up with the messages that are typed.

now lets change the last say(); to sayhi();

now three messages alert boxes come up first the "say a message" one, then "this is a message to you, please read" and then back to the "say a message".



Powered by ScribeFire.

No comments:

Post a Comment