/* add http:// to URL fields on blur */ document.addEventListener('DOMContentLoaded', function() { var elements = document.querySelectorAll("input[type=url]"); Array.prototype.forEach.call(elements, function(el, i){ el.addEventListener("blur", function(e){ if(e.target.value.match(/^(?!https?:).+\..+/)) { e.target.value = "http://"+e.target.value; } }); }); });
WeChat ID
aaronpk_tv