I'm working on a windows 8 application and during my application i want to load a different CSS file based on the language of the Windows . for example if the default language for the user is En i load a CSS file and if it is Ar i load a different one , how can i do that ?!
2 Answers
I believe Windows8 app still have a <head> right? Then you can use javascript to add css to the head.
var h=document.getElementsByTagName('head')[0]; var l = document.createElement("link"); l.setAttribute("rel", "stylesheet"); l.setAttribute("type", "text/css"); l.setAttribute("href", filename); h.appendChild(l);