/ Published in: PHP
![](/img/icon_sav.png?v3)
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>
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)