I have a script that prevents individual pages of my webpage to be opened outside my frames. It looks like this:
if (top.frames.length == 0) {top.location.href="/?" + self.location};
One problem with this is that it first loads the frameset with my welcome-page. First when the welcome-page has loaded completely it is replaced with the requested page.
How can I change the script so it doesn’t open the welcome-page first, but go directly to the requested page?
How do I complement the script to prevent my pages to be opened in frames of another website (deep-linking).
if (top.frames.length == 0) {top.location.href="/?" + self.location};
One problem with this is that it first loads the frameset with my welcome-page. First when the welcome-page has loaded completely it is replaced with the requested page.
How can I change the script so it doesn’t open the welcome-page first, but go directly to the requested page?
How do I complement the script to prevent my pages to be opened in frames of another website (deep-linking).