I create a div element and set its style properties in JavaScript:
var popupDiv = document.createElement("div");
popupDiv.style.background = "#fff";
popupDiv.style.border = "1px solid #e8e8e8";
popupDiv.style.padding = "20px";
popupDiv.style.position = "fixed";
...
But I also want to add:
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
So I tried:
popupDiv.style.webkitUserSelect = "none";
popupDiv.style.mozUserSelect = "none";
popupDiv.style.msUserSelect = "none";
popupDiv.style.userSelect= "none";
But only the "user-select: none;" property gets set correctly...so my question is...how do I add these "unsupported" css properties via JS?
(Setting them directly in css/inline is not an option.)