I have an article page. The user can choose XXX (which is a hyperlink code), and then the article page template will call this XXX. The code is:
<script type="text/javascript" src="XXX"></script>
If src is empty, the current page will be requested one more time
<head><meta http-equiv="Content-Type" content="text/html; charset=GB2312" /><title>无标题文档</title></head><body><script type="text/javascript" src="1.js"></script><script type="text/javascript" src=""></script><script> function $t(name, cot){ cot = cot || document; return cot.getElementsByTagName(name); } var objs = $t('script'); var href = location.href; for(var i=0,len = objs.length-1; i < len; i++){ if( objs[i].src == href){ document.body.removeChild(objs[i]); } }</script></body></html>
If src is empty, the current page will be requested one more time
HTML code