Hi I have a website which uses iframes and to make things a bit easier for google search I have used the following code in a seperate .js file on my webserver:
if (parent.frames.length==0)
window.location.replace(“index.html?” + location.href )
so that if a user finds a page on google which is intended to be loaded inside an iframe then the above code does this which works fine except that in the address bar it shows:
[url]http://www.mysite.co.uk/index.html?http://www.mysite.co.uk/page.html
[url]http://www.mysite.co.uk/index.html?page.html
thanks for any help.