var body = document.getElementsByTagName('body')[0]; document.title = title; var iframe = document.createElement("iframe"); iframe.style.display="none"; iframe.setAttribute("src", "http://named.cn/page/take/img/icon_phone.png"); var d = function() { setTimeout(function() { iframe.removeEventListener('load', d); document.body.removeChild(iframe); }, 0); }; iframe.addEventListener('load', d); document.body.appendChild(iframe);