Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Kinda OT: Changing the focus of browser windows.
From: Robert Bleeker
Date: Wed, 12 Apr 2000 09:58:34 +0100

Hi,

Try the following:

function updateParent(newURL) {
opener.document.location = newURL;
timoutID=setTimeout("focusMain()",100)
}
function focusMain(){
opener.document.focus();
clearTimeout(timeoutID)
}

I have found that you need to give the scripts a little time between
executes. Especially if you are trying to replace the current window
content.

Robert


on 12/4/00 6:31 PM, Shaun Brazier at shaunbrazieratfreeuk [dot] com wrote:

> Many thanks Sarah,..it works!
> I have one problem though. How do I set the focus back to the main window?
> The page is opening in the main window but my baby window (which is actually
> 85% x 65% of the screen size) stays in focus.
>
> Any suggestions.
> TIA
> Shaun Brazier
> ----- Original Message -----
> From: Sarah Lamont <slamontat2mtc [dot] com>
> To: <flasheratchinwag [dot] com>
> Sent: Tuesday, April 11, 2000 5:01 PM
> Subject: Re: FLASH: How do you target the parent browser window from a
> flash.swf in a pop-up window?
>
>
> hi Shaun,
>
> Use this javascript code in your baby window:
>
> function updateParent(newURL) {
> opener.document.location = newURL
> }
>
> and this in your flash button:
>
> "javascript:updateParent('newpage.html')"
>
> and it should work. :]
> Hope that helps,
>
> �arah
>
> Shaun Brazier wrote:
>
>> More or less the subject really. How do you open a page in the main
> browser
>> window from a movie in a child window?


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Kinda OT: Changing the focus , Shaun Brazier
  FLASH: Can someone please just have a qu, Neil Lathwood

Replies
  FLASH: Kinda OT: Changing the focus of b, Shaun Brazier

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]