1<script language="javascript" type="text/javascript">
2alert('This is what an alert message looks like.');
3</script>
4
5function showAlert() {
6 var country = "Fiji";
7 var city = "Suva";
8 alert('The city of ' + city + ' is located in ' + country + '.');
9}
10
11<input type="button" value="Click Here" onClick="showAlert();">