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)
-   -   Is there a way to redirect to two different sites at same time? (https://gfy.com/showthread.php?t=1107128)

duk75 04-21-2013 02:53 AM

Is there a way to redirect to two different sites at same time?
 
I would like to redirect a page to two different sites, one would open in the same window, and the other in a new tab or window.

How can I do this?

I don't want that the user click to get the other site or both, I want that when the user go to some URL then the URL launches two different pages.

It seems very similar, if not the same, to an old fashioned pop up...

How do I do this?

EddyTheDog 04-21-2013 03:44 AM

I could be wrong - I would guess that you would need a click - As far as I know there is not a way to do an 'onload' popup anymore and that's what it would require.

Not really my thing but that would be my guess....

duk75 04-21-2013 08:02 PM

Quote:

Originally Posted by EddyTheDog (Post 19589417)
I could be wrong - I would guess that you would need a click - As far as I know there is not a way to do an 'onload' popup anymore and that's what it would require.

Not really my thing but that would be my guess....

The problem is that it seems that onclick scripts does not work over iframes (when the script is on the main page and not in the iframed page), and I need it to work over iframes, or frames, but it seems it can't.

2013 04-21-2013 09:37 PM

you can do on page load with javascript?

harvey 04-21-2013 10:43 PM

redirect first page to second page. on second page make 3rd page popup on load. Problem solved :2 cents:

EddyTheDog 04-21-2013 10:46 PM

Quote:

Originally Posted by harvey (Post 19590537)
redirect first page to second page. on second page make 3rd page popup on load. Problem solved :2 cents:

Can you do an onload popup?

harvey 04-21-2013 10:59 PM

Quote:

Originally Posted by EddyTheDog (Post 19590541)
Can you do an onload popup?

yes you COULD, but I think most browsers nowadays disable window.open without a click. Anyway, here's a simple code:

Code:

<script type="text/javascript">
function pop()
{
    poppy = window.open("http://www.gfy.com", "mywindow", "location=1,status=1,scrollbars=1,width=1000,height=800");
    poppy.moveTo(0, 0);
}
</script>
<body onload="javascript: pop()">

JQuery version:

Code:

$(function(){
    window.open(url, windowName[, windowFeatures]);
});


OR you can get creative and add a DOM to trigger events via JQuery with some delay. There are many ways, I used some pretty shitty code some years ago to open several pages by using a... FORM element!

duk75 04-21-2013 11:01 PM

Quote:

Originally Posted by harvey (Post 19590537)
redirect first page to second page. on second page make 3rd page popup on load. Problem solved :2 cents:

The browser will not block the pop up of the second page?

harvey 04-21-2013 11:03 PM

Quote:

Originally Posted by duk75 (Post 19590555)
The browser will not block the pop up of the second page?

read above

2013 04-21-2013 11:04 PM

Quote:

Originally Posted by duk75 (Post 19590555)
The browser will not block the pop up of the second page?

i gave you the answer in my post

sarettah 04-21-2013 11:06 PM

Quote:

Originally Posted by duk75 (Post 19590378)
The problem is that it seems that onclick scripts does not work over iframes (when the script is on the main page and not in the iframed page), and I need it to work over iframes, or frames, but it seems it can't.

Throw a transparent image over the whole page. When they click in launch the popunder and hide the .gif.

.

helterskelter808 04-22-2013 07:40 AM

I'm sure there are easier ways to completely piss off and alienate your site's visitors.


All times are GMT -7. The time now is 03:54 PM.

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