Hi Rielyn,
I assume you do not care specifically about whether or not the action that clears the text is the click on the X or not.
It is no different for a Metro style app in HTML than in a browser. You can sync the input event and test for empty.
Something like this:
…
WinJS.UI.processAll();
document.getElementById("myText").addEventListener("input", inputevent);
}
function inputevent(e) {
if(e.target.value.length === 0)
{ outputTxt.innerText = "empty";
}
}
-Jeff
Jeff Sanders (MSFT)