arames Posted September 9, 2006 Share Posted September 9, 2006 Hi people, thank you in advance for your reply to this Topic. Actually I have some friends, partners and affiliate people who are opening my pages in their FRAME, this way of course people would remain on their pages ... now when a customer click on a product then he gets COOKIE ERROR. Please how do I make that every link on my pages should be opened outside the frames (or so to say Tagert=_top) Thank you for your reply :( Link to comment Share on other sites More sharing options...
arames Posted September 9, 2006 Author Share Posted September 9, 2006 Any replies ??? Link to comment Share on other sites More sharing options...
arames Posted September 9, 2006 Author Share Posted September 9, 2006 pleeeeeeeeeeeeeeeeeeeeeease i need a reply :( Link to comment Share on other sites More sharing options...
LisaC Posted September 10, 2006 Share Posted September 10, 2006 If they are going to YOUR site from THEIR site and it is staying in their own frame then it is up to THEM to have the link open into a new window. People who make framed sites should know enough to have external links open into new windows - frames are tricky. Try contacting those that have the framed sites and asking them to add this bit of code to your link this will cause the link to open into a new window <a href="http://www.yoursite.com" target="_new"> This will cause the link to open into the existing window but override the frames (loading from the top and not internal) <a href="http://www.yoursite.com" target="_top"> The only other thing I can think of is to add something like this to your index page at the top where people will see it when they load your main page. To break out of someone elses frames <a href="http://www.yoursite.com" target="_top"> please click here</a> Now maybe I am wrong and there is another way for you to break out of someone elses frames but this is all I am aware of. Good luck Link to comment Share on other sites More sharing options...
Guest Posted September 10, 2006 Share Posted September 10, 2006 There are javascripts that will not allow your pages to be viewed in a frame. Just google "break out of frames" and you'll find some. Below is an example of one: In the head section... <script language="JavaScript" type="text/javascript"> <!-- function framebreakout() { if (top.location != location) { top.location.href = document.location.href; } } //--> </script> and add to your body tag... onload="framebreakout()" It's up to you how much time you want to take worrying about how other people display your site! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.