• <nav id="cwumo"><code id="cwumo"></code></nav>
  • <menu id="cwumo"><strong id="cwumo"></strong></menu>

    JQuery設置iframe的src值

    時間:2024-07-30 18:45:16 jQuery 我要投稿
    • 相關推薦

    JQuery設置iframe的src值

      復制代碼 代碼如下:

      $(window.parent.document).find("#Frm_Main").attr("src",url);

      使用jquery操作iframe

      1 內容里有兩個ifame

      <iframe id="leftiframe"...

      <iframe id="mainiframe..

      leftiframe中jQuery改變mainiframe的src代碼:

      $("#mainframe",parent.document.body).attr("src"," ")

      2 如果內容里面有一個ID為mainiframe的ifame

      ifame包含一個someID

      you want to get this content

      得到someID的內容

      $("#mainiframe").contents().find("someID").html() html 或者 $("#mainiframe").contains().find("someID").text()值

      2 如上面所示

      leftiframe中的jQuery操作mainiframe的內容someID的內容

      $("#mainframe",parent.document.body).contents().find("someID").html()或者 $("#mainframe",parent.document.body).contents().find("someID").val()

    【JQuery設置iframe的src值】相關文章:

    word行距怎么設置磅值11-28

    jQuery程序設計08-05

    jquery提交按鈕的代碼07-28

    淺析jQuery 遍歷函數javascript08-06

    jQuery中prev()方法用法07-16

    jQuery中replaceAll()方法用法10-15

    如何理解jquery事件冒泡09-15

    jQuery的DOM操作筆記07-29

    jQuery 源碼分析和Ready函數06-28

    jQuery中parent()和siblings()的問題10-16

    日韩激情