![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Feb 2012
Posts: 741
|
![]() 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?
__________________
...Nice. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Just Doing My Own Thing
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,038
|
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....
__________________
- Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Feb 2012
Posts: 741
|
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.
__________________
...Nice. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
So Fucking Banned
Industry Role:
Join Date: Jan 2013
Location: lollling
Posts: 4,390
|
you can do on page load with javascript?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
redirect first page to second page. on second page make 3rd page popup on load. Problem solved
![]()
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Just Doing My Own Thing
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,038
|
Can you do an onload popup?
__________________
- Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
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()"> 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!
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Feb 2012
Posts: 741
|
![]() The browser will not block the pop up of the second page?
__________________
...Nice. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
read above
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
So Fucking Banned
Industry Role:
Join Date: Jan 2013
Location: lollling
Posts: 4,390
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,057
|
Quote:
.
__________________
All cookies cleared! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
So Fucking Banned
Industry Role:
Join Date: Sep 2010
Posts: 3,405
|
I'm sure there are easier ways to completely piss off and alienate your site's visitors.
|
![]() |
![]() ![]() ![]() ![]() ![]() |