Open popup from a frame in a popup (firefox)

Posted on 2009-04-30
Last Modified: 2012-05-06
Hi, I'm trying to open a popup (new window) from a frame in another popup. It sounds weird so I'll try to explain it better:

main window --> popup with frames --> popup2

In IE7 everything is OK.
In firefox/XP, popup2 is opened in a new tab, NOT in a new window
In firefox/linux, popup2 is opened in a new tab on the main window !!!

This is the code I'm using to do this:
<a href="link" onclick="'link');return false;">bla bla</a>

Thanks in advance!
Question by:blueshaolin
    LVL 10

    Accepted Solution

    I think you must provide a name and the size of the new popup, otherwise FF will open it as a tab'[URL here]', '[new win name]', 'width=[width],height=[heigth]');

    Open in new window

    LVL 12

    Expert Comment

    is there a reason why you are using javascript for this?

    looks like you might as well use

    <a href="link" href="#" target="_blank">bla bla</a>

    since you are not doing any formatting of the page via the javascript.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
    This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now