Здравствуйте, Antik, Вы писали:
A>sciter и tiscript
instanceof вестимо.
<html>
<head>
<title></title>
<style>
button#test { prototype: Concrete; }
</style>
<script type="text/tiscript">
class Base: Behavior
{
}
class Concrete: Base
{
function onClick()
{
stdout.println(this instanceof Concrete ? "is a Concrete": "");
stdout.println(this instanceof Base ? "is a Base": "");
stdout.println(this instanceof Element ? "is an Element": "");
stdout.println(this instanceof Object ? "is an Object": "not an Object");
}
}
</script>
</head>
<body>
<button #test>Test</button>
</body>
</html>