alerts using javascript

Results 1 to 2 of 2

Thread: alerts using javascript

  1. #1
    Join Date
    Dec 1969

    Default alerts using javascript

    hello. Thanx for helping me.<BR> <BR>can u plese give the code for showing alerts using javascript?<BR><BR>chris

  2. #2
    Aditee Gupte Guest

    Default RE: alerts using javascript

    hi chris,<BR><BR>alerts are showm using the following syntax<BR>&#060;script language=javascript&#062;<BR>function showalert()<BR>{<BR>alert("Hello")<BR>//or if abc is a variable<BR>//then<BR>abc = "Hello"<BR>alert(abc)<BR>}<BR>&#060;/script&#062;<BR><BR>now call this funtion on some event<BR>eg:<BR>&#060;Body onload=showalert()&#062;<BR><BR>&#060;/body&#062;<BR>Note : javascript is case sensitive and will run only if you have javascript enabled on your browser<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts