jQuery怎么给iframe赋值
2个回答
展开全部
<iframe id="eWebEditor1" src="ewebeditor.htm?id=content1&style=standard600&skin=office2003" frameborder="0" scrolling="no" width="580" height="350"></iframe>
<INPUT type=button value="取值(HTML)" onclick="myTextArea.value=eWebEditor1.getHTML()" class=btn>
<INPUT type=button value="取值(纯文本)" onclick="myTextArea.value=eWebEditor1.getText()" class=btn>
<INPUT type=button value="赋值" onclick="eWebEditor1.setHTML('<b>Hello My World!</b>')" class=btn>
<INPUT type=button value="当前位置插入" onclick="eWebEditor1.insertHTML('This is insertHTML function!')" class=btn>
<INPUT type=button value="尾部追加" onclick="eWebEditor1.appendHTML('This is appendHTML function!')" class=btn>
<br>
<INPUT type=button value="代码状态" onclick="eWebEditor1.setMode('CODE')" class=btn>
<INPUT type=button value="设计状态" onclick="eWebEditor1.setMode('EDIT')" class=btn>
<INPUT type=button value="文本状态" onclick="eWebEditor1.setMode('TEXT')" class=btn>
<INPUT type=button value="预览状态" onclick="eWebEditor1.setMode('VIEW')" class=btn>
<br>
<INPUT type=button value="英文字数" onclick="alert(eWebEditor1.getCount(0))" class=btn>
<INPUT type=button value="中文字数" onclick="alert(eWebEditor1.getCount(1))" class=btn>
<INPUT type=button value="中英文字数(中文加1)" onclick="alert(eWebEditor1.getCount(2))" class=btn>
<INPUT type=button value="中英文字数(中文加2)" onclick="alert(eWebEditor1.getCount(3))" class=btn>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询