Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InnerHtml

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
0
0
PT
I have a funtion that receives an html object tag(<object id ='test'>). I would like to use it as a standard html control. So I make a innerhtml of it to a <div> tag.

However it seems I cannot use it. For instance the following code will give an error:

alert(document.getElementById('test').id)

Does this menas I cant use the object as a standard html object?

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top