Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
When I use the target attribute as target="_blank", it is opening in a new tab instead of a new window. How can I open a link in a new window in Firefox 5?

EDIT: New approach, which is not working:

HTML
<a href="faqs.html" target="_blank" title="Help &amp; FAQs" önclick="openWindow(this.href,500,600,'Yes');return false">this is my line of code</a>
Posted
Updated 29-Jul-11 13:00pm
v3
Comments
Monjurul Habib 29-Jul-11 18:30pm    
share your full code.

1 solution

That is user-configurable, so may open in a new tab on your computer but may open in a new window on another user's computer. You should be able to get around this using JavaScript. Create a click handler for the link and, instead of navigating to the URL, use window.open to open the URL. See here.
 
Share this answer
 
Comments
Member 8046452 29-Jul-11 18:44pm    
hi,

I write the onclick as this onclick="openWindow(this.href,500,600,'Yes');return false" but it is not going good.
Member 8046452 29-Jul-11 18:46pm    
AspDotNetDev 29-Jul-11 19:02pm    
Please post any new code in your question (I have edited your question for you this time). There appears to be an umlaut above the "o" in your "onclick" assignment. That is your first problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900