JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2061
Number of posts: 5164

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
document.write() Posted by nanju84 on 4 Jun 2009 at 11:58 PM
hi

i am trying to write some content to document using document.write();
for ex:
var sometext="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
document.write(sometext);
but its not working properly can anyone help me why its notworking.
Report
Re: document.write() Posted by losthelper on 5 Jun 2009 at 5:55 PM
is it inside the script tags


like so


<script type="text/javascript">

var sometext="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
document.write(sometext);
</script>



this works for me
I am in relearning process, sorry if i make a mistake
Report
Re: document.write() Posted by CyGuy on 8 Jun 2009 at 1:11 AM
Right. And do not forget the HTML and BODY tags. Without them there is no document to write to.



 

Recent Jobs