[removed] Overriding alert()

后端 未结 12 2421
忘了有多久
忘了有多久 2020-11-22 03:17

Has anyone got any experience with overriding the alert() function in JavaScript?

  • Which browsers support this?
  • Which browser-versions sup
12条回答
  •  天命终不由人
    2020-11-22 03:47

    My experience with overriding alert() function is that we once used it to "hack" trial version of JavaScript library that displayed "Please register!" nag screen through alert time to time.

    We just defined our own alert() function and voila.

    It was for testing purposes only, we bought full version later, so nothing immoral going on here ;-)

提交回复
热议问题