Wednesday 24 September 2014

popup using javascript

<!DOCTYPE html>
<html>
<head>
    <title> popup-1</title>
    <link rel="stylesheet" type="text/css" href="css/1.4.1.min.css" />
    <script src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/1.4.1.min.js"></script>
</head>
<body>

<button class="btn" onclick="popup()">Open Popup</button>

<script type="text/javascript">
function popup() {
    w2popup.open({
        title: 'Popup Title',
        body: '<div class="w2ui-centered">This is text inside the popup</div>'
    });
}
</script>

</body>
</html>

No comments:

Post a Comment