如何创建以iframe为目标的标签? [英] How to creating a tab that target an iframe?
问题描述
我不习惯javascript。我想做的很简单。
假设我有< div>在我的文档中,我想创建一个新的< a>单击按钮时,在其中标记/控制。当我再次点击该按钮时,它将创建另一个< a>标签/控件旁边没有任何空格,当我点击另一个按钮时,它将删除一个特定的< a>标签/控制。
换句话说,我想创建自己的标签并在其中一个< a>之前定位IFRAME。标记/控制是单击。我想用纯JavaScript创建它。
请帮帮我。谢谢。
I'm not used to javascript. What I want to do is simple.
Let's say I have <div> in my document and I want to create a new <a> tag/control inside it when I click on a button. When I click the button again it will create another <a> tag/control beside it without any spaces in between and when I click on the other button it will remove a particular <a> tag/control.
In other words a I want to create my own tab and target IFRAME when one of the <a> tag/control is click. I want to create it in pure javascript.
Please help me with this. Thank you.
推荐答案
参考 - jQuery UI:Tab方法 [ ^ ]。
它有代码添加选项卡并通过jQuery删除选项卡。
Refer - jQuery UI: Tab Methods[^].
It has the codes to add a tab and remove a tab by jQuery.
这篇关于如何创建以iframe为目标的标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!