how to set "onInput" and "onpropertychange" listener on iframe

i am trying to make a comment editor with iframe, and want to trigger the change of content inside iframe, the following code cant work.

it is strange because it works fine when i replace them with "keypress" and "blur"



// IE
frameobj.attachEvent('onpropertychange', function(){alert();} );

frameobj.addEventListener('input', function(){alert();} , false);

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!