JBalius Posted February 19, 2007 Share Posted February 19, 2007 Me and a partner of mine are getting ready to launch a FREE domain provider website. So all we ask in return is to have our ads on your website, however while we were planning to use frames and just put our ads on top and bottom of the website, we encounter the problem that the user can use javascript to get out of them. Does anyone know a code that won't let this happen? Thanks. Quote Link to comment Share on other sites More sharing options...
fenway Posted February 19, 2007 Share Posted February 19, 2007 It's hard to lock a user into a framed-site without javascript. Quote Link to comment Share on other sites More sharing options...
JBalius Posted February 19, 2007 Author Share Posted February 19, 2007 Okay, what Javascript can I use to do this? Quote Link to comment Share on other sites More sharing options...
JBalius Posted February 20, 2007 Author Share Posted February 20, 2007 Anyone? Quote Link to comment Share on other sites More sharing options...
fenway Posted February 20, 2007 Share Posted February 20, 2007 But you said you wanted a solution that prevents the user from using JS to break it... that's not really possible, since it would be a JS solution. Quote Link to comment Share on other sites More sharing options...
JBalius Posted February 20, 2007 Author Share Posted February 20, 2007 Well what I want (no matter what we have to use) is just to prevent the user from doing it. Quote Link to comment Share on other sites More sharing options...
fenway Posted February 21, 2007 Share Posted February 21, 2007 Actually, I haven't even written one... I'm sure there are plenty of examples out there, though. Quote Link to comment Share on other sites More sharing options...
JBalius Posted February 22, 2007 Author Share Posted February 22, 2007 do you know where I can find them? I tried searching on Google but nothing. Quote Link to comment Share on other sites More sharing options...
fenway Posted February 22, 2007 Share Posted February 22, 2007 Then you didn't search hard enough --- basically, on the page that is supposed to be framed, you simply check to see if the the self object is the parent object (i.e. _not_ framed), and if so, send them back to the frameset url. Quote Link to comment Share on other sites More sharing options...
brown2005 Posted February 22, 2007 Share Posted February 22, 2007 What users are you talking about breaking out the frames? are you talking about visitors to the sites? or people that use your free hosting for a site? as if its the second why can't you just write in the terms & conditions that they will have the site withdrawn if they tamper with the frame layout? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.