I have an iframe in an HTML page, how can I cause it to act as a textarea?
I have an iframe in an HTML page, how can I cause it to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
set contenteditable property to true
Sets or retrieves the string that indicates whether the user can edit the content of the object.
Security Alert: Users can change the contents of a Web page when the contentEditable property is set to TRUE. Using this property incorrectly can compromise the security of your application. Incorrect use of the contentEditable property might include not validating user input. If you do not validate user input, a malicious user can inject control characters or script that can harm your data. You should take routine precautions against displaying unvalidated user input.
Also take a look at
Converting an app using document.designMode from IE to Mozilla.
Eg:
and in the Content.htm page