We can make use of alert() in javascript to display the pop in Visualforce page. But there another pop up box which looks pretty good and it is providing by Salesforce.
Below is the code to create a pop up box in Visualforce :
Below is the code to create a pop up box in Visualforce :
<apex:page >
<script type="text/javascript">
document.body.style.cursor="auto";
var box=new SimpleDialog("Test", true);
box.setTitle("Test Pop up");
box.createDialog();
box.setContentInnerHTML("<b>Praveen</b><input type=\"button\" value=\"Ok\" onclick=\"javascript:box.hide();\"/>");
box.show();
</script>
</apex:page>
|