我在html页面中使用了一些iframe标签,如下所示:
<TABLE border="0" width="900">
<tr valign="top">
<td width="300" ALIGN=center>
<iframe src='http://www.apple.com/in/' frameborder = 0, height=250, width = 300 > </iframe><br>
</div>
</td>
<td width="300" ALIGN=center>
<div class="item_list">
<iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID-137232779171598318' frameborder = 0, height=250, width = 300 base target="_blank" > </iframe></a><br>
</div>
</td>
<td width="300" ALIGN=center>
<div class="item_list">
<iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID- 137232785207215857' frameborder = 0, height=250, width = 300 > </iframe>
<br></div>
</td>
</tr>
</TABLE>
现在我需要的是打开iframe内部的链接到新标签页或窗口。我已经使用了以下脚本,但没有运气。
<SCRIPT LANGUAGE="JavaScript">
function goNewWin() {
//***Get what is below onto one line***
window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1,
location=1,directories=1,status=1,menubar=1,
scrollbars=1,resizable=1');
//***Get what is above onto one line***
self.close()
}
</SCRIPT>
有人能建议我解决这个问题吗?
答案 0 :(得分:0)
我认为您正试图在新标签页中打开新页面。如果是这样,这里是您需要的代码:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(int argc, const char * argv[])
{
clock_t start;
start = clock();
start = clock() - start;
fprintf(stderr, "Elasped time %f\n\n", (float)(start) / CLOCKS_PER_SEC);
return 0;
}