Popup window in asp.net using java script

19/04/2012 16:38

 

<script type="text/javascript">
        function popitup(url) {
            newwindow = window.open(url, 'name', 'height=500,width=550,scrollbars=Yes,screenX=450, screenY=60');
            if (window.focus) { newwindow.focus() }
            return false;
        }
    </script>
 
 <table>
                                                                                    <tr>
                                                                                        <td valign="middle">
                                                                                            <asp:CheckBox ID="chkTermsCondition" runat="server" />
                                                                                        </td>
                                                                                        <td valign="middle">
                                                                                            &nbsp; I agree to the <a href="https://www.cavintek.com/terms/" onclick="return popitup('https://www.cavintek.com/terms/')"
                                                                                                title="Terms of Service">Terms of Service</a> and <a href="https://www.cavintek.com/privacy/"
                                                                                                    onclick="return popitup('https://www.cavintek.com/privacy/')" title="Privacy Policy">
                                                                                                    Privacy Policy</a>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>