Monday, 8 July 2013

Display alert box using javascript

Introduction

Here I will explain simple JavaScript Query to Display alertbox using javascript.

Description:

In previous articles I explained  many articles relating to JavaScript. Now I will explain diaplay apert box using javascript.

Examples

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Untitled Page</title>

    <script type="text/javascript">


function displaymessage()


{
alert("gohil");

}



</script>

</head>
<body>
    <input type="button" value="click me" onclick="displaymessage()" />
</body>
</html>

No comments:

Post a Comment