extending alert in ie

P

pantagruel

Hi,
the following works in FF but not IE:

Object.prototype.describe=function(){alert("Description: " +
this);return this}
alert.describe();

The question I have is mainly how can one go about extending the
behavior of native objects in IE?
 
P

pantagruel

Hi,
the following works in FF but not IE:

Object.prototype.describe=function(){alert("Description: " +
this);return this}
alert.describe();

The question I have is mainly how can one go about extending the
behavior of native objects in IE?

as an example of what I mean:

Object.prototype.describe=function(){alert("Description: " +
this);return this};
ActiveXObject.describe();

will produce an alert with the description equalling function()
{ native code}

I would like to achieve some sort of introspection on the native code
within IE (also in Firefox but that already seems a little more
amenable to this sort of hacking)

does anyone know can one intercept the parameter passed to
ActiveXObject and dependent on value allow the native code to run?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,149
Messages
2,570,843
Members
47,390
Latest member
RobertMart

Latest Threads

Top