
HTML Код: - Копирай кода!
<!-- JavaScript and HTML codes by Quackit.com -->
<script language="javascript" type="text/javascript" >
function welcomeMsg(promptMsg)
{
visitorName = prompt(promptMsg, '');
alert("Welcome " + visitorName + "," + "\n\n" + "You are currently visiting one of the best web development sites on the net! Hope you find Quackit useful!" + "\n\n" + "Hey " + visitorName + ", don't forget to recommend us to your friends!");
}
</script>
<form>
<input type="button" onclick="welcomeMsg('What is your name?');" value="Read our Welcome Message!" />
</form>
Няма коментари:
Публикуване на коментар