So ive been trying out two different scripts
HTML Code:
var websiteURL = 'http://www.starrwhitehouse.com/';
var framesetString = 'starrwhitehouse-projects.html';
function checkFrameset() {
var isInFrameset = (top.location.href.indexOf(framesetString) != -1);
if (!isInFrameset) {
top.location.href = websiteURL + framesetString;
}
}
And
HTML Code:
if(self.location==top.location) top.location.replace('../../starrwhitehouse-project.html');
It seems like this one works more reliably. When a project sheet is opened by itself, it loads redirects it to the main page
Bookmarks