/ Published in: PHP
message alert, javascript alert
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<html> <head> <script type="text/javascript"> function showAlert() { var name = "Roseindia"; var city = "Delhi"; alert(name +" is in "+ city); } </script> </head> <body> <input type="button" value="Click for Alert" onClick="showAlert();"> </body> </html>