Create a pop-up : Dialog : Window Browser JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Window Browser » Dialog »

 

Create a pop-up



<html>
<head>
<script type="text/javascript">
function show_popup(){
    var p=window.createPopup()
    var pbody=p.document.body
    
    pbody.style.backgroundColor="lime"
    pbody.style.border="solid black 1px"
    pbody.innerHTML="Click outside to close."
    p.show(150,150,200,50,document.body)
}
</script>
</head>

<body>
<button onclick="show_popup()">Show pop-up</button>
</body>

</html>




           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Window Browser
» Dialog