-1

I would like to know if there is a method to intercept onbeforeunload event and consequently do some action in a browser that have java script execution disabled.

Thank You

Piercarlo

Piercarlo
  • 335
  • 1
  • 5
  • 14

1 Answers1

2

If Javascript is disabled, you won't be able to use Javascript, so you can't intercept anything.

Also, I feel like there's a need for disambiguation here. You say

java script

so it seems that you may be confusing the Java programming language, with Javascript, which despite sharing 4 letters, are completely different beasts.

Check this old question for more information, and a bunch of geeky jokes on the subject.

What's the difference between JavaScript and Java?

Community
  • 1
  • 1
xShirase
  • 11,975
  • 4
  • 53
  • 85