dooberry Posted June 1, 2006 Share Posted June 1, 2006 Does anyone know how to access the body of a <div> element through it's properties?What I want to do is use find a document object that is within the div element so that I can dynamically change the content using document.write().The reason I can't use the InnerHTML property is because InnerHTML does not allow you to add <script> or <style> elements to an element, whereas the write() method does.If anyone can help I will be grateful.Thanks.Dooberry. Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 1, 2006 Share Posted June 1, 2006 This should be in the JavaScript section.There are other possibilities than write(), only, you might read the JavaScript tutorial. If you have, could you then post the code so I can see what exactly you tried to do? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now