469,362 Members | 2,302 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,362 developers. It's quick & easy.

How to get OuterHtml in a TextBox using Javascript

Hey All,
I want to get the OuterHtml in a TextBox and I am using following code
but I am getting value as "undefined" Please let me know if I am doing
anything wrong..

function GetValue()
{
document.getElementById("txtBox").value =
parent.main.document.documentElement.outerhtml ;
return document.getElementById("txtBox").value;
}

Jul 28 '06 #1
1 2408
ri****************@gmail.com wrote:
Hey All,
I want to get the OuterHtml in a TextBox and I am using following code
but I am getting value as "undefined" Please let me know if I am doing
anything wrong..
outerHtml is an IE proprietary property. See the following for
supported Gecko Element properties
http://developer.mozilla.org/en/docs...ent#Properties

Jul 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by harry | last post: by
3 posts views Thread by David Virgil Hobbs | last post: by
1 post views Thread by rn5a | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.