Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Alert Messages in Javascript
- <script language="javascript" type="text/javascript">
- alert('This is what an alert message looks like.');
- </script>
- function showAlert() {
- var country = "Fiji";
- var city = "Suva";
- alert('The city of ' + city + ' is located in ' + country + '.');
- }
- <input type="button" value="Click Here" onClick="showAlert();">
Add Comment
Please, Sign In to add comment