如何在html中将onclick标记为iframe标记 [英] how to asign the onclick to iframe tag in html
本文介绍了如何在html中将onclick标记为iframe标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是koti,我将onclick()函数设置为< iframe>标签,它不工作。我想知道该< iframe>上有多少次点击标签。
< iframe 滚动 = no frameborder = 0 src = http://localhost/koti/Advertisements.aspx?id = 8 style = < span class =code-keyword> width:120px; height:240px; float:right title = 足球比赛 önmousedown = incrseclick(24) > 足球比赛& gt; < / iframe >
它对我不起作用。任何人都知道如何解决这个问题。请为我分享信息。
先谢谢。
解决方案
< blockquote>
尝试 onmousedown
读取 ö nmousedown
。
BTW,我看看此主题 [ ^ ]比较 onmousedown 和 onclick 。
**您可能需要将该函数绑定到事件:
(' #iframeID')contents()。find( ' body')。bind(' mousedown', function (){
// 在mousedown上执行一些JS在iframe中
});
干杯,
Edo
hi,
i am koti, i asign the onclick() function to <iframe> tag ,it does not working.i want to know how many clicks on that <iframe> tag.
<iframe scrolling="no" frameborder="0" src="http://localhost/koti/Advertisements.aspx?id=8" style="width: 120px; height: 240px;float:right" title="soccer games" önmousedown="incrseclick(24)" >soccer games></iframe>
it does not works for me.any body knows how to solve the this. please share the information for me.
Thanks in Advance.
解决方案
Hi,
Tryonmousedown
insread of yourönmousedown
.
BTW, I''d have a look at this thread[^] comparing onmousedown and onclick.
** You may need to bind the function to the event:
('#iframeID')contents().find('body').bind('mousedown', function(){ // execute some JS on mousedown within iframe });
Cheers,
Edo
这篇关于如何在html中将onclick标记为iframe标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文