2024年iframe 調用父頁面js匯總
每個人都曾試圖在平淡的學習、工作和生活中寫一篇文章。寫作是培養人的觀察、聯想、想象、思維和記憶的重要手段。范文怎么寫才能發揮它最大的作用呢?接下來小編就給大家介紹一下優秀的范文該怎么寫,我們一起來看一看吧。
iframe 調用父頁面js篇一
貴有恒何必三更眠五更起,最無益只怕一日曝十日寒。 以下是小編為大家搜索整理的iframe調用父頁面的`方法,希望能給大家帶來幫助!更多精彩內容請及時關注我們應屆畢業生考試網!
1
?
();
//xxxxx()代表父頁面方法
具體列子如下,其中包括easyui的右鍵和單擊事件
body部分代碼
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<
body
?class
=
"easyui-layout"
>
<!-- 左側目錄 -->
<
span
data-options
=
"region:'west',split:true,title:'主題',iconcls:'icon-arrowin'"
style
=
"width: 270px; background: #efefef"
>
<!-- 目錄數 -->
<
ul
?id
=
"tree"
?class
=
"easyui-tree"
></
ul
>
</
span
>
<
input
?type
=
"hidden"
?value
=
"${ }"
?id
=
"themetype"
/>
<!-- 右側窗體 -->
<
span
data-options
=
"region:'center',title:'內容顯示',iconcls:'icon-arrowout'"
?style
=
"overflow: hidden"
>
<
iframe
?name
=
"leftiframe"
?id
=
"leftiframe"
?src
=
""
?frameborder
=
"0"
?height
=
"100%"
?width
=
"100%"
></
iframe
>
</
span
>
<!-- 右鍵菜單 -->
<
span
?id
=
rightclimean
?class
=
"easyui-menu"
?style
=
"width:120px;"
>
<
span
?onclick
=
"updatetheme();"
?data-options
=
"iconcls:'icon-edit'"
?>修改</
span
>
<
span
?onclick
=
"removeobjectnode();"
?data-options
=
"iconcls:'icon-tip'"
?>刪除</
span
>
</
span
>
<
script
?type
=
"text/javascript"
>
loadtree();
</
script
>
</
body
>
js部分:
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35