[HOW TO?] Fan page redirect to website!

Nightime14

Junior Member
Joined
Nov 29, 2009
Messages
171
Reaction score
50
how do you redirect a fan page to a website? like right when a user goes to the fan page it redirects instantly to a website thats NOT iframed in the page ..i tried html redirect..didnt work added blank target..didnt work , also tried java script redirect didnt work ..any suggestions?
 
maybe
Code:
top.location.href = 'http://yourwebsite.com';
inside an i-frame tab?
 
how do you redirect a fan page to a website? like right when a user goes to the fan page it redirects instantly to a website thats NOT iframed in the page ..i tried html redirect..didnt work added blank target..didnt work , also tried java script redirect didnt work ..any suggestions?

It's possible and I used it once to get some permissions from the user :)

maybe
Code:
top.location.href = 'http://yourwebsite.com';
inside an i-frame tab?
+1
it's working from the iframe ;)

Just don't use it to refresh the whole page, ex :
Code:
top.location.href = top.location.href;
 
i tried the code and i am not bale to have that to work what am i doing wrong does it work with some browsers only or with all of them

maybe
Code:
top.location.href = 'http://yourwebsite.com';
inside an i-frame tab?
 
I guess the OP wants to make the Most out of Youlikehits New Manual Facebook Like system.

Cool idea OP :biggthump
 
i tried the code and i am not bale to have that to work what am i doing wrong does it work with some browsers only or with all of them

You doing it like this money?
Code:
<script type="text/javascript">
top.location.href = 'http://yourwebsite.com';
</script>

Preferably that should be placed somewhere in between your <head></head> tags on the iframed page.
 
You doing it like this money?
Code:
<script type="text/javascript">
top.location.href = '';
</script>

Preferably that should be placed somewhere in between your <head></head> tags on the iframed page.

i tried putting that in my header tags but it just keeps refreshing the site when i go to it.
 
money, try this:


<script>
if (parent.frames.length > 0)
{
parent.location.href = location.href;
}
</script>
 
Back
Top