Open Popup Without User Action or Webform On Click Using JavaScript in Asp.Net

Open Popup Without User Action or Webform ClicK

If Click on Webform form Without user action popup open new tab or same page using in Asp.Net C#.

                                 DEMO



                             Download

                        HTML Coding


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript">


        // Open popup in Same Page without user action

        document.addEventListener('click',function()
        {
            window.open('http://www.dotnetdrizzles.blogspot.in','','width=250 height=250');

        })
     
        // Open  New Tab without user action

        document.addEventListener('click',function()
        {
            window.open('http://www.dotnetdrizzles.blogspot.in', 'width=250 height=250');
        })

    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
   
    </div>
    </form>
</body>

</html>


Add - New Form - Add Javascript AddEventListener Click Function





0 comments:

Post a Comment