alert

alert

hi to all,
i want displaying text with in the form only ( in javascript we use document .write() . to display text in a page 
$(document).ready(function(){
    $("p").click(function(){
        if ($("p").parent().is("div")) {
            alert("Parent of p is div"); 
        }
    });
});

<body>
<div>
  <p>Click me to find out if I my parent is a div element.</p>
</div>
</body>


i dont want to show my text in alert box .