![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
raojinpg
这个作者很懒,什么都没留下…
展开
-
javascript(js)iframe里的页面调用父窗口js函数的方法或弹出窗口调用父窗口js函数的方法
<br />其实js调用父窗口函数的情况有两种:<br />第一种是常用的iframe:<br />我以子窗口调用父窗口的函数发送到fckeditor编辑器的为例说明,只需简单三行:<br /><SCRIPT language=javascript><br />parent.functioncall();//functioncall为函数<br /></SCRIPT><br />addattach():父页面里的一个js函数,功能是发送内容到编辑器:<br /><br />function addattac原创 2011-01-13 17:45:00 · 2887 阅读 · 0 评论 -
textarea 自动增高
<br /><textarea id="tValue" style="overflow-y:hidden; height:20px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'"></textarea>原创 2011-02-22 11:15:00 · 1065 阅读 · 0 评论