could not get innerText in Firefox

Last post 04-30-2010, 12:30 AM by wolf11th. 2 replies.
Sort Posts: Previous Next
  •  04-28-2010, 10:54 PM 60530

    could not get innerText in Firefox

    var editor1 = document.getElementById('<% = cmsKeyImprovement.ClientID%>');

    var contentInstance = editor1.GetDocument();

    var  content= contentInstance.body.innerText
     
    Hi there,
    above code works fine in IE but not Firefox which reports an error"contentInstance.body.innerText is undefined"
    pls help
  •  04-29-2010, 6:12 AM 60538 in reply to 60530

    Re: could not get innerText in Firefox

    Hi wolf11th,
     
    In forefox please use contentInstance.body.textContent
     
    Regards,
     
    Ken
  •  04-30-2010, 12:30 AM 60555 in reply to 60538

    Re: could not get innerText in Firefox

    thx ken
    I didn't know that firefox doesn't support innertext~~~
View as RSS news feed in XML