Forum Moderators: open
When the person type the url of the website
Ex:
http://www.example.com/index.php
the back button of the browser to be disabled.
I tried two method
i)Window.open
I used the window.open to call some other page other than index page.
BUT I COULDN'T close the parent window in Firefox.
ii)history.forward()
It is also working well with the IE only
Can Anyone help me to fix this issue
by
ravi
[edited by: DrDoc at 4:52 pm (utc) on July 22, 2008]
(Note, I do not want my left are removed). :)
It cannot be done. Period. You may be able to achieve what might appear to be a foolproof solution, but it will not be 100% reliable (not even 50%). Give me a browser and two minutes, and I'll be using the back button again.
Secondly:
As has already been said -- disabling the back button is a ridiculously bad idea. Your client doesn't know what they're talking about, and you need to tell them that. Refuse the job, if nothing else. Whatever reason they might have for wanting to disable the back button, there are multiple reasons against for each perceived reason for.
The problem is not the back button. The problem is something else, and that's what you need to identify. Do they want to ensure completion of a form? Do they want to retain status or information over several pages? Whatever it is they seek to accomplish, disabling the back button is not the solution. They just think it is, because they do not have the technical knowledge to identify the real solution to the real problem.
I am trying method may be bad.When i try to use the
window.open("index.html","sample","toolbars=no");
it is disabling the toolbar option.
When i tried using the following method
window.open("index.html","_parent","toolbars=no");
it is not disable the toolbar option.
was there any way to hide the toolbar on the parent window.
By doing that i will be able to hide the back button.
I knew it is a bad idea.
can anyone help me.
by
ravi
Which is another thing - maybe they want to keep people trapped long enough to give them a gift of forced malware downloads.
One word for it: EVIL
[edited by: Marcia at 5:06 am (utc) on July 30, 2008]