is illusory sandbox javascript controlling browser?
i'm wondering it's illusory sandbox javascript controlling browser hinder opening comforts customarily accessible javascript formula controlling an html page.
for example, let's contend i wish yield javascript api finish users let interpretation eventuality handlers run "interesting events" happen, nonetheless i don't wish those users opening properties functions window
object. am i means this?
in simplest case, let's contend i wish hinder users job alert
. integrate approaches i cruise are:
- redefine
window.alert
globally. i don't cruise current proceed since formula controlling page (i.e. things authored users eventuality handlers) competence wishalert
. - send eventuality handler formula server process. i'm certain eventuality formula server slight right proceed since eventuality handlers need run context page.
perhaps fortitude where server processes user tangible duty following generates callback executed fan work? even proceed works there improved ways solve problem?
Comments
Post a Comment