From ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khtml/ecma/jsk.html | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 khtml/ecma/jsk.html (limited to 'khtml/ecma/jsk.html') diff --git a/khtml/ecma/jsk.html b/khtml/ecma/jsk.html new file mode 100644 index 000000000..917c083e8 --- /dev/null +++ b/khtml/ecma/jsk.html @@ -0,0 +1,113 @@ + + + +Javascript Konsole + + + + +

JavaScript Konsole

+
+ + + + + +
Expression
Result Type
Result(s)
  + + +
+
+

Explanation

+

Operation

+
+When evaluate is pressed, the given expression is evaluated and the result is displayed in the result(s) field. +In case of list properties being pressed, the result of the expression is taken as an object +and the objects properties are displayed with their type and value in the the result(s) field. +
+

Expression

+
+Expression must be a valid javascript expression, e.g.
window +
or
document.body.innerHTML
or
+"Today: " + (new Date()).toString()
+or
+"Cablecar".match(/ab.*c/) +
It is also possible to assign a value, +e.g.
document.getElementsByTagName('H1').item(0).innerText="Hello World"
+You may execute these examples by pasting them into the expression field. +
+

Result Type

+
+The type of the result of the given expression. +
+

Result(s)

+
+The result of the expression is implicitly converted to a primitive type by the javascript interpreter, +if evaluate was pressed. When list properties was pressed, a for (var i in obj) loop +is executed to list the properties. These object properties are in turn evaluated and their types and values +are displayed. +
+

+Till Krech +

+

+
+

+ + + -- cgit v1.2.1