Closing window in Salesforce

Note: Disable the development mode.

<apex:page showChat="false" wizard="true" sidebar="false" >
<!-- Javascript -->
<script type = "text/javascript">
    function winClose()
    {
        self.close();
    }
</script>
<!-- End of Javascript-->

<apex:commandButton onComplete = "winClose();">

</apex:page>


Cheers!!!

No comments:

Post a Comment