Howard a écrit :
ASM wrote:
>Howard Rifkin a écrit :
>>>
and in Firefox 2.x on Windows and Linux,
Because you didn't explain to your FF to open popups in a tab ...
I don't want to open it in a tab in this case, but how would I do that?
It is the user who fix that in preferences of his brower.
Programmer can do nothing about this choice.
>What do your special browsers with :
http://stephane.moriaux.perso.orange...ui_non/f_0.htm
(take care that page will try to resize its window)
Seems to work fine. I can open f1 and f2 from the main window and close
f1 from f2 and f2 from f1. The close take place instantly.
So there is something else in your code that doesn't please to FF
Opening-n-closing FI F2 are very similar to what you gave as code
(except in my demo we have a little more difficulty : we pass by opener)
Don't you open twice (or more) your popup ?
Function to avoid to open more than once the popup :
function newPop(page) {
if(typeof(truc')=='undefined' || !truc || truc.closed)
truc = window.open('','','width=300,height=100');
truc.location = page;
truc.focus();
}
function closePop() {
if(typeof(truc')!='undefined' && !truc.closed)
truc.close();
else alert('no popup to close !');
}
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date