html refresh properties
Is i开发者_Go百科t possible that the html page loaded, cannot be refreshed or reloaded by the user
Thanks..
No, and you shouldn't try to do this...it breaks all the users expectations of what a webpage does.
Whether it's code or behavior, when you're having trouble doing something, it's usually because it hasn't been done or hasn't been made easy...stop to ask why that is, and often you'll find there's a good reason.
The onbeforeunload event could be used to detect a situation like this.
I think this is what SO uses when you write an answer and then want to leave before you post it; it asks you if you are sure.
Is that what you want to use it for or what?
精彩评论