You can disable total script access through registry for IE . But for a specific js function with in an specific html page