GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   HELP!!! Code question... (https://gfy.com/showthread.php?t=938037)

MarkTiarra 11-11-2009 10:04 AM

HELP!!! Code question...
 
I need someone here to show off how big their code penis is, please. You'd think I'd now the answer to this one after 14 years of coding, but sometimes you get soemthing that hasn't come up before...

I've got a popup console that launches and is the top layer/focus. When someone clicks on an item in the console I have it launch back into the browser underneath and want to change focus back to that browser instead of having the console still sitting up top. How can I do it???

ravo 11-11-2009 10:58 AM

Bump for an answer for Mark.

psili 11-11-2009 11:00 AM

is it: opener.focus()

or just close the console after the click that targets opener?

i dunno. here's a bumpity.

Zayne E. 11-11-2009 11:09 AM

http://blazonry.com/javascript/windows.php

See Example 4...

MarkTiarra 11-11-2009 11:13 AM

Quote:

Originally Posted by Zayne E. (Post 16539387)

Thanks for the link. It's not quite it though. It does launch the new link in the original browser (which we managed to accomplish thus far) but it does not move the popup window to the background. That's the main thing I need.

MarkTiarra 11-11-2009 11:14 AM

Example #2 might hold the key though. Trying that now...

MarkTiarra 11-11-2009 11:25 AM

Dang nope... couldn't quite make that work.

Zayne E. 11-11-2009 11:32 AM

Quote:

Originally Posted by MarkTiarra (Post 16539408)
Thanks for the link. It's not quite it though. It does launch the new link in the original browser (which we managed to accomplish thus far) but it does not move the popup window to the background. That's the main thing I need.

In your popup window set your HREF's as such:
<a href="javascript:window.blur()">click</a>

MarkTiarra 11-11-2009 12:07 PM

Quote:

Originally Posted by Zayne E. (Post 16539464)
In your popup window set your HREF's as such:
<a href="javascript:window.blur()">click</a>

Sorry to sound newb, but where then does the URL mix in with that?
<a href="javascript:window.blur(INSERTSITEURL?)">clic k</a>

quantum-x 11-11-2009 12:15 PM

var newPop = window.open('url');
newPop.blur();

MarkTiarra 11-11-2009 01:10 PM

Quote:

Originally Posted by quantum-x (Post 16539626)
var newPop = window.open('url');
newPop.blur();

Grasias!

quantum-x 11-11-2009 02:00 PM

In the window that pops up:

put this in the head

<SCRIPT language=JavaScript>
function leave() { if (exit) this.blur();}
</SCRIPT>

In the body tag of the doc: onBeforeUnload="return leave();"

that should work

MarkTiarra 11-11-2009 02:04 PM

Quote:

Originally Posted by quantum-x (Post 16540066)
In the window that pops up:

put this in the head

<SCRIPT language=JavaScript>
function leave() { if (exit) this.blur();}
</SCRIPT>

In the body tag of the doc: onBeforeUnload="return leave();"

that should work

Nice. If I can ever help ya' out, just let me know.


All times are GMT -7. The time now is 06:48 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123