0

I want to display javascript function's parameters of every webpage through my addon. the below javascript code is my addon code. i am using internal function hooking mechanism.

hookEval = eval;
eval = function (str)
{
   console.log("evals "+str);
   return hookEval(str);
}

hookWrite = document.write;
document.write = function (str)
{
   console.log("write"+str);
   return hookWrite(str);
}

The above code is displaying the parameters of java script functions in firefox and opera console, but in IE, sometimes it is displaying and most of the times nothing its displaying.

Why the above code is not working in IE?

Edit:console.log is working fine in ie9. it is not the problem.

Mmh
  • 399
  • 1
  • 5
  • 16

1 Answers1

0

I'd say this provides some information. Console.log is problematic in IE. There is also the issue of overwriting a builtin javascript function. Not sure IE likes that. That's just a guess though. I've not researched it.

Community
  • 1
  • 1
Joe Mills
  • 1,619
  • 11
  • 12
  • Don't consider console issue. i am aware of console issue. and i am using ie9 with console. – Mmh Feb 25 '13 at 07:06