Can you explain your question better by creating a simple WinJS app using Visual Studio and walking through that sample to achieve what you want. That way we can understand your question better.
Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, http://aka.ms/t4vuvz