I use the following function to remove the navigation frame-
function removeframe() {
var current = window.self.location.href;
var top = window.top.location.href;
if (top != current) {
top = current;
window.top.location.href = top;
}
else if (top == current) {
history.back(1);
}
}
Problem is it brings up a javascript error during live testing saying 'permission denied'
Does anyone know what im doing wrong?
Also, I am currently using the history back to 'readd' the frame again, is there an easier way? (retaining the current page)
cheeers
rick
function removeframe() {
var current = window.self.location.href;
var top = window.top.location.href;
if (top != current) {
top = current;
window.top.location.href = top;
}
else if (top == current) {
history.back(1);
}
}
Problem is it brings up a javascript error during live testing saying 'permission denied'
Does anyone know what im doing wrong?
Also, I am currently using the history back to 'readd' the frame again, is there an easier way? (retaining the current page)
cheeers
rick
Comment