Search This Blog

Loading...

Nov 20, 2010

Hello World


Sponsored Links:
We can write JavaScript along with asp.net in aspx page or we can create separate file (.js) and we can call it whenever we require.

<scripttype="text/javascript"language="javascript">


    function
HelloWorld()
    {
       // Here you can put your code
      
alert('Welcome to CodingHub');
    }

</script>

How to Call: Here I am calling this function in on load event of the page

<body onload ="HelloWorld();">

OutPut


image

Follow by Email