I have a Javascript Object with some properties, for example, Clipboard. here my custom object:
MyApp.sessionState
and this is the getProprieties
(returns a String
)
MyApp.sessionState.getProperty("clipboard");
This input return for example "this is text".
There is same way to append an eventListener
"change" on this Object or this string?
I tried this but it doesn't work:
var a = MyApp.sessionState
a.addEventListener("change", function(){console.info("change!")}, false);
but returns:
TypeError: Object # has no method
'addEventListener'