javascript - Can't get value of designMode IFRAME -


I can not retrieve the content of an iframe when designmode = 'on' . Here is my code:

  val = $ ("#frame"). Val ();  

I have tried everything, and anything works, help?

  var iframe = $ ("# frame") [0]; Var iframeDoc = iframe.contentDocument || Iframe.contentWindow.document; Var val = iframeDoc.body.innerHTML;  

Comments