根据网址在iframe中绘制图片 [英] Drawing image in iframe according to its url
本文介绍了根据网址在iframe中绘制图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我需要粘贴图像,同时使用javascript在该图像的click事件上将其放在iframe中的url中.
请问我该怎么做
谢谢
hi all
i need to paste an image while i have it url in an iframe on the click event of that image using javascript.
How can i do that, pleaseeee
Thanks
推荐答案
<iframe src="" id="MyIFrame" />
var iFrame = document.getElementById("MyIFrame");
iFrame.src = "http://codeproject.com";
这篇关于根据网址在iframe中绘制图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文