aabb
<input type=button value="find aa" onclick="txt = window.document.body.createTextRange();if(txt.findText('aa')){txt.moveStart('character', -1);txt.findText('aa');txt.select(); txt.scrollIntoView();}">
<input type=button value="select some literals and click me" onclick="pp.value = document.selection.createRange().text">
<input id=pp type=text>
<input type=button value="find aa" onclick="txt = window.document.body.createTextRange();if(txt.findText('aa')){txt.moveStart('character', -1);txt.findText('aa');txt.select(); txt.scrollIntoView();}">
<input type=button value="select some literals and click me" onclick="pp.value = document.selection.createRange().text">
<input id=pp type=text>
解决方案 »
- 关于 replace
- 如何用js获取链接的网址??
- document.body.scrollLeft document.body.scrollTop是什么意思???
- javascript的gettime()如何用C++实现(如何在visual studio实现)
- 文本处理问题,如何对关键词高亮显示
- 小弟对js不太熟悉,请帮忙看一下这段代码是什么意思,很简单的,谢谢
- 100分求“jscript完全教程”电子版
- 各位大侠,看看怎么传参数。在线等
- js中对html模板的解析
- 在A页面如何控制插在A中的B页面?
- 奇怪的js错误
- <iframe>里的src(即调用的)页面怎样控制其上级页面的对象?谢了!分不多了,搞定再加!
<iframe src="main.asp" width="100%" height="100%" frameborder=0></iframe>
内嵌一个页面
在showmodaldialog里使用iframe也不能调用IE自带的查找及贴粘功能呀。
还有别的招吗?