我有一個main.php
文件,其中包含兩個I幀:test1
和test2
加載iframe中的內容
<iframe id="test1" name="test1" src="test1.php" height="300" width="200"></iframe>
<iframe id="test2" name="test2" src="test2.php"></iframe>
的#test1
包含display: none;
我想顯示的test1.php
當內容點擊test2.php
處的按鈕。我已經嘗試了一些選項,並提到了與此問題有關的以前的帖子,但無法加載test1.php
。我怎樣才能做到這一點?
iFrame是幾乎總是一個壞主意,容易更換。 – 2013-05-21 21:23:44
我不相信這是可能的,除非點擊事件iframe中的頁面位於您的服務器上,並且它發送了一個ajax請求,表明其他iframe中的頁面正在輪詢。 –