Reputation: 75
my this link is not opening the new link in a pop up It is opening on the new tab .i want it to open in a proper pop up
<button class="button button1" onclick=" window.open('test1.php')" style ="padding-top=20px"> Generater Receipt</button>
Upvotes: 0
Views: 330
Reputation: 53
You can use this code to open it in popup
<button class="button button1" onclick=" window.open('test1.php' ,'_blank')" style ="padding-top=20px"> Generater Receipt</button>
Upvotes: 1