Reputation: 113
I want my cookies details to open in a new window popup in my Chrome browser when i click on it.
This is my code-
</div>
<a href="javascript:window.open('','_self').close();">
<label className="return"><T.span text='Cookies.Homepage' /></label>
</a>
</div>
<Link to="/Cookies" target="_blank">
<T.span text='Footer.Cookies'/>
</Link>
But this always opens the cookies content in a new tab. How can i open it in a separate new window popup??
Upvotes: 3
Views: 8555
Reputation: 71
To open the new window in an actual window, and not a tab, you need to pass in a specs parameter to window.open:
javascript:window.open('','_blank','height=600,width=400');
Upvotes: 2
Reputation: 6803
Use blank instead of self
<a href="javascript:window.open('','_blank').close();">
Upvotes: 0