<script>
var div = null;
var _prefix = (function (temp) {
var prefix = ["webkit", "Moz", "o", "ms"];
var props = "";
for (var i = 0; i < prefix.length; i++) {
props = prefix[i] + "Transition";
if (temp.style[props] !== undefined) {
return "-" + prefix[i].toLowerCase() + "-";
}
}
return false;
})(document.createElement(div));
console.log(_prefix);
</script>