Change theme: 
Search for :    
Previous Blogs
Transformers Blogs
Misc Blogs
Computer/Tech Logs
Movie Reviews
Popular Blogs
ASCII chart
Comment from Tamera on December 24, 2015
Configuring Speedstream 6520 For Modem Only Mode
Comment from Janet on September 13, 2015
Transformers Reviews: MP-19 Smokescreen
Comment from Silagra on August 1, 2015
Transformers Reviews: MP-21 Masterpiece (Bumble) Bee
Comment from google authorship check on June 26, 2015
Aww...It's a Cat...Meow
Comment from vxt on June 4, 2015


RSS Facebook Twitter Instagram
My Tweets
Web Development Tip: Breaking Out Of Frames
How can you stop someone from framing your site? First of all, what does that mean? If you don't know what it means, you probably won't care about this blog but I'll give a little explanation, anyway. You know when you do a Google image search and when you click on the images, it takes you to the site but there is a bar at the top of their site with Google's information? Well, that's Google framing the original site. They put the site in what's called a frame in HTML. Here's a little javascript code to break out of frames. Just put this code in the onLoad attribute of the body tag.
if (self != top) top.location.href = self.location.href;
Comments

Post a Comment

Name:    
Email:    
Website:    
Commentssmileys
What&year is 17&years from now?Please answer the question shown

Copyright © Viet Tran. All Rights Reserved. Powered by Content ManagerTM | Top