javascript - Intercepting DOM and JS engine calls -


i want intercept dom object read , write queries fired js while getting loaded browser. after intercepting these calls, wish screen them. have written logic screening not able block calls.

is there way other modifying source code of browser achieve this? if pls me.

you mean this? (for reason fails in fx illegal operation)

<script> var oldget = document.getelementbyid; document.getelementbyid=function(id) {   return confirm('someone wants know '+id+', ok?')?oldget(id):null; } window.onload=function() {   alert(document.getelementbyid('div1').innerhtml); }  </script> <div id="div1">hello</div> 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -