I am having a scenario when I am clicking on a button then one pop-up must be opened asking "Do you want to perform this operation". There are two button OK and Cancel. And on pressing any of there button control must go i controller and do required task.
After doing google, I find one way using windows.open but i cannot apply my css on this and there is no particular url for this. So this did not worked.
I have tried that when the page load a div having this data should hide and after clicking it must shown but this is not giving felling of popup.
<body onload="hide()">
    <center>
        <script>
            function hide() {
                document.getElementById("show").style.visibility = "hidden";
            }
            function show() {
                document.getElementById("show").style.visibility = "visible";
            }
        </script>
        <div id="form">
            <form method="get">
                <div id="show">Demo</div>
                <table>
                    <tr>
                        <td></td>
                        <td><a id="dialog-link" href="">
                            <button type="button" value="Show Pop up"
                                    onclick="show()">Click</button>
                        </a></td>
                    </tr>
                </table>
            </form>
        </div>
    </center>
</body>
 
     
     
     
    