Forum : Document.write()
Brief description  about Online courses   join in Online courses
View Santosh  Hegde 's Profile

Document.write()

Dear Sir,
i need to know that how can be get display docuent.write(), inside of div?
it normally takes full page to display
but i need to display it in side the "div"
ie:<div id="mydiv">document.write('this is my content') </div>or inside of the table at the same page
how?
please guide me..

with thanks
Asked by Santosh Hegde | Jan 13, 2011 |  Reply now
Replies (2)
View santosh hegde 's Profile
Thank you sir... :)
Mar 4, 2011
View teacher siliconindia 's Profile
Hi Santosh,

U just mention, script tag inside div, like

<div id="mydiv">
<script type="text/javascript" language="javascript">

document.write("here u write whatever u want");

</script>
</div>
Jan 31, 2011