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 with javascript

Status
Not open for further replies.

richardko

Programmer
Jun 20, 2006
127
US
Hi,
I am trying to append an innerHTML that looks like this:

Code:
var inn = '<javascript src="/test.js">blah..blah..blah<input type="text">';

When I append the inn to an existing div it works fine in Firefox but fails to even show up in IE....any idea how to get around this.
thanks
ro
 
k, i guess document.write does work for this issue.

Are there any alternatives to document.write though?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top