I have my code:
<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();">
the result is:
The city suva is located in Fiji.
K fine My doubt is: AlerBox contains "The page at localhost:1234 says".Here I want to define user-defined statement.How is it possible in javascript.
Help, please!