Micro-channel public number h5 page alert to remove the domain name

h5 page number embedded in micro-channel public message alert when the domain name is displayed, remove the domain name display rewrite alert methods:

= function window.alert (name) {
var iframes = document.createElement ( "the IFRAME");
iframe.style.display = "none";
iframe.setAttribute ( "the src", 'Data: text / Plain,');
Document .documentElement.appendChild (iframes);
window.frames [0] .window.alert (name);
iframe.parentNode.removeChild
(iframes);
}; ----------------
Rights Disclaimer: this article is CSDN blogger original article "Zxiuping", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/Zxiuping/article/details/90404271

Guess you like

Origin www.cnblogs.com/niudaxianren/p/12299000.html