日期:2014-05-17 浏览次数:20439 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <body> <textarea id="h" style="width:100%;height:60px"> <body><input id="textbox1" value=aa></body> </textarea> <input type="button" value="测试" onclick="window.frames['x'].document.body.innerHTML=document.getElementById('h').value;alert(window.frames['x'].document.getElementById('textbox1').value)"/> <iframe name="x" style="display:none"></iframe> </body> </html>