Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Still having Focus problems 1

Status
Not open for further replies.

ToshTrent

Technical User
Jul 27, 2003
209
Hi,

In my flash site I have a button which creates a small pop up window with a picture in it.

How ever if they have already clicked it and minimised it or lost focus, i can't seem to bring it back to the front.

How can i set focus to the window on mouse release?

Sorry if this has been asked before, I couldn't find it.

Cheers
Tosh.
 
What code have you used to open the popup?
Do you have an html in that popup, or calling the picture alone?
Do you want it to allways remain on top, no matter what?
 
I'm currently using this code to pop up the HTML window,

on (release) {

getURL("javascript:resizeWindow('_supporting/_popuphtmls/_prom/1.htm', 'prom', 'height=265, width=407, resizable=0, fullscreen=0, status=no, scrollbars=no, toolbar=0, location=0, directories=0, menubar=0, left=80, top=100')");
}

then in the index.htm...

<Script Language ="Javascript">
function resizeWindow(theurl, windowname, features)
{window.open(theurl, windowname, features);}
</Script>

I would only like the popup to gain focus when they click on the button again, so it will just regain focus when a change occurs.

Cheers
Tosh
 
Try this in your html...

<Script Language ="Javascript">
function resizeWindow(theurl, windowname, features){ NewWindow=window.open(theurl, windowname, features);
NewWindow.focus();}
</Script>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top