|Js that doesn't kill the back button|
I'm currently using this to replace the window with the frame if the page is pulled up outside of the frameset:
Is there a code that doesn't disable the back button?
Yes, there is. Try:
if (parent==self) location.replace("URL");
It replaces the last entry in the history list, instead of creating a new one.
I thank you and I'm sure I will have many less irritated visitors who try to return to the serps but most of all my log files thank you because now there won't be 400 entries from the clickety-click-click-clickety-click routine of trying to get free.
Same question as toolman but without the frames . . . been trying to work this out for 2 days on my own.
The external "/JS/2001.js" is simply window.location.replace("http://www.mydomain.com/newpage.html");
I can't imagine disabling someone's Back Button.
By the way, the safest way to create a link to an external js file is:
What you have is a bit too barebones to be sure of it working on all browsers.
The safe way you pointed out works.
Many of my old product pages do well for some useful kw searches and I would hate to lose this traffic as I present a new line. Please check my thinking here: With this method, I can keep the "old" pages up for their keyword value, yet still direct the searcher to my new product line in a seamless, fair and safe way. I htaccess-protect my JS folder and I have not performed any trickery on the searcher nor flagged myself to the SEs.
And this, the scripting I described earlier plus your kind response, is the easiest and safest of redirection methods. Correct? My furrowed brow thanks you,
My fingernails thank you,
My blood pressure thanks you
and I thank you.
>> And this, the scripting I described earlier plus your kind response, is the easiest and safest of redirection methods. Correct? <<
For now. As far as I know.