jquery獲得同源iframe內(nèi)body下標(biāo)簽的值的方法
來源:易賢網(wǎng) 閱讀:1092 次 日期:2016-06-20 10:15:15
溫馨提示:易賢網(wǎng)小編為您整理了“jquery獲得同源iframe內(nèi)body下標(biāo)簽的值的方法”,方便廣大網(wǎng)友查閱!

test.html

html代碼

?123456789101112131415161718192021222324 <!doctype html> <html> <head> <meta http-equiv=content-type content=text/html; charset=utf-8 /> <title>jquery</title> <style type=text/css> </style> <script type=text/javascript src=> <script type=text/javascript> $(document).ready(function (){ $(#show).click(function (){ var iframeobj = $(window.frames[iframe_name].document); alert(iframeobj.find(#un).val()); }); }); </script> </head> <body> <input type=button id=show value=show /> <iframe id=iframe_id name=iframe_name src=> </body> </html>

login.html

html代碼

?1234567891011121314 <!doctype html> <html> <head> <meta http-equiv=content-type content=text/html; charset=utf-8> <title>登錄頁面</title> </head> <body> <form method=post action=#> 用戶名:<input id=un type=text name=username value=123d /> 密 碼:<input type=text name=password/> <input type=submit value=提交> </form> </body> </html>

更多信息請查看腳本欄目
易賢網(wǎng)手機(jī)網(wǎng)站地址:jquery獲得同源iframe內(nèi)body下標(biāo)簽的值的方法
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機(jī)站點

版權(quán)所有:易賢網(wǎng)