Win8: Accessing page elements in default.html outside of default.js
- by Arvin
I have the following page elements within default.html:
<div id ="content">
<div id="output"></div>
</div>
And within default.js:
...
args.setPromise(WinJS.UI.processAll().done(function()
{
var theOutput = document.getElementById("output");
theOutput.innerText = "This is the output";
}));
....
This…