dragonhawk
04-23-2002, 02:51 AM
I was wondering if it was possible to disable the refresh button in browsers by writing some code in the file.
They've done it with the back button (disabling it), so there must be a way with disabling the refresh button also.
webarama
04-23-2002, 07:00 AM
Originally posted by dragonhawk
They've done it with the back button (disabling it), so there must be a way with disabling the refresh button also.
I don't know that you're right there. I have searched high and low myself and have never had any luck finding an answer to this one.
tagalaxy.net
04-23-2002, 07:12 AM
out of interest, why would you want to?
nocturnix123
04-23-2002, 10:00 PM
yah that kinda stuff pisses me off...like popup windows that cant be closed, GRR!
Yea, I was wondering that myself :eek: Why disable features where visitors may need them?
dragonhawk
04-23-2002, 10:58 PM
I hate those people who disable the back button and disable the close window button too
but i need to disable to refresh button so form results don't get submitted twice. It's not good especially if the information is going into a database. I'll have to manually go in there and undo all the results of having the form submitted multiple times.
I have a client that had the same problem (with paypal). You can show the new window without toolbar, but it is not the very best solution. Hacker can easily use the older browser or any other browser that does not support the function call.
The best way is to provide session or to put restriction internally that works regardless of the refresh button. :)
dragonhawk
04-25-2002, 03:08 AM
I was told one way to stop refresh is to use cookies, however, although I've done that with my scripts, it makes it very difficult for buyers to test it on different purchases.
Although, that's not really a problem, i'd really like it if my customers could test the script in that way.
Oh well, i guess, if it can't be done, it can't be done. Prob wait till the adult industry invents something like that (since they always do invent new things)