iframe伪造ajax
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div> 请输入你要加载的网站: <p> <h1 class="tm"></h1> <input type="text" name="web"/> <input type="button" value="刷新" onclick="LoadPage();"/> </p> </div> <div> <h3>加载页面位置:</h3> <iframe id="iframePosition" style="width: 100%;height: 500px"> </iframe> </div> </body> </html> <script> window.onload=function (ev) { dt=new Date() document.getElementsByClassName('tm')[0].innerHTML=dt.getTime().toString(); } function LoadPage(){ url=document.getElementsByTagName('input')[0].value; document.getElementById("iframePosition").src=url; } </script>