syntax to write a java script with in the html controls RRS feed

  • General discussion

  • hi..
    i have a small java script funtion with an alert msg saying "Welcome"
    iam calling that function when an input button onclick ....
    instead of calling that function ..how can i write that msg with in code of html control......
    Wednesday, November 11, 2009 10:24 AM

All replies

  • on page load you can call the function




    body onload="WelcomeDialogBox()">

    Thursday, November 12, 2009 5:24 AM
  • i believe ur looking for this...

    <input type="button" value="Click" onclick="javascript:alert('Welcome');" >

    hope this helps....

    Narayanan Dayalan - Zeetaa Business Solutions Please Mark "Propose As Answer", if my answer works well with ur Query
    Friday, November 13, 2009 1:19 PM