Is there a way to do this when the page is in a tab instead of a new window?
I have a main page which lists work to do. The agent clicks a link on one of the items. This opens a new window, a form related to the item. Upon submitting the form, I wish to refresh the main page because the item has been handled and we need a new list. The Javascript above is on the page in the new window.
All of that works until we started using Firefox with tabbed browsing. Some agents like to open the form in a tab instead of a pop-up window. This can be done by middle-clicking the link, or by right-clicking and selecting Open Link in New Tab. When we do that, window.opener is not an object, the Javascript dies, the main page is not refreshed, and other things which happen after that line of code are not executed.
Is there a way to refer to the tabbed page, my main page, which opened the page in the new tab?
Code:
window.opener.location = "main.asp";
I have a main page which lists work to do. The agent clicks a link on one of the items. This opens a new window, a form related to the item. Upon submitting the form, I wish to refresh the main page because the item has been handled and we need a new list. The Javascript above is on the page in the new window.
All of that works until we started using Firefox with tabbed browsing. Some agents like to open the form in a tab instead of a pop-up window. This can be done by middle-clicking the link, or by right-clicking and selecting Open Link in New Tab. When we do that, window.opener is not an object, the Javascript dies, the main page is not refreshed, and other things which happen after that line of code are not executed.
Is there a way to refer to the tabbed page, my main page, which opened the page in the new tab?