-
document write (JS)
How can I print a string, on html document, on the current window?
when I use:
PHP Code:
document.write(x);
it opens a new page, and I want it to be desplayed in the body of the current window.
Thanks
-
-
In order to avoid that, the document.write() method may only be employed as the page is being parsed (loaded).
You can use an element's innerHTML property to write to an element. That's actually non-standard. But it's used so much that it's widely supported.
-
The Following User Says Thank You to jscheuer1 For This Useful Post:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks