diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2011-03-09 23:44:59 +0100 |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2011-03-10 11:53:53 +0100 |
commit | 1d1094ddcb35e1148deb6e8da470dcf0d314a3f7 (patch) | |
tree | 0fb48163f57d4d2c1928f255e45c00b465e99e3d /examples/document.js |
Initialize repository
Diffstat (limited to 'examples/document.js')
-rw-r--r-- | examples/document.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/document.js b/examples/document.js new file mode 100644 index 0000000..b0c2496 --- /dev/null +++ b/examples/document.js @@ -0,0 +1,5 @@ +console.log("document:", document); +document.write("<p>Hello, JavaScript in QtScript!</p>"); +document.close(); +console.log("p tag's innerHTML:", document.getElementsByTagName("p").item(0).innerHTML); +console.log("document.innerHTML:", document.innerHTML); |