It's the small hours of the morning, and I'm confused, tired and losing hope. All evening/night I've been trying to accomplish a simple objective. To close a safari browser window.
The situation is a little complicated. I have a php script, containing a .swf (flash movie). The flash does it's job (a bit of communication with some flash in another window), and the does a getURL('javascript: window.close());
- I've tested it in explorer, works fine - window closes.
So I started playing around with stuff. Made a javascript function called closeme().
function closeme() {window.close();};
Tried calling that instead. Still hasn't worked.
I've stared and stared at my syntax, in case Safari is picky - looks ok to me. This isn't the first weird thing to happen. I noticed before that <BODY onload="window.moveTo(0,0);... had no effect.
Is it me - or is there an issue, or even a workaround I should know about?
Mac OS v 10.3.2, Safari 1.2 (v125)
The situation is a little complicated. I have a php script, containing a .swf (flash movie). The flash does it's job (a bit of communication with some flash in another window), and the does a getURL('javascript: window.close());
- I've tested it in explorer, works fine - window closes.
So I started playing around with stuff. Made a javascript function called closeme().
function closeme() {window.close();};
Tried calling that instead. Still hasn't worked.
I've stared and stared at my syntax, in case Safari is picky - looks ok to me. This isn't the first weird thing to happen. I noticed before that <BODY onload="window.moveTo(0,0);... had no effect.
Is it me - or is there an issue, or even a workaround I should know about?
Mac OS v 10.3.2, Safari 1.2 (v125)