I have a pop-up window (div) displayed when I click on outPutLink by calling a javascript function
<apex:outputLink value="javascript:pop();" id="pl" disabled="false">pop</apex:outputLink>
when the div appears, it is includes a commandButton that close the popup div using javascript function too.
<apex:commandButton id="plClose" value="Close" onclick="javascript:hidePop();" />
but when I click on close, the whole page reloaded.
this is the js block
<script>
var $j = jQuery.noConflict();
$j(document).ready(function(){
});
function hidePop(){
$j('.pop-form').fadeOut("slow");
}
function pop(){
$j(".pop-form").toggle();
}
onclick="javascript:hidePop();return false;"