码迷,mamicode.com
首页 >  
搜索关键字:getelementbyid    ( 3315个结果
javascript 正则匹配 提取全部 preg_match_all matchAll方法
javascript 提取所有的的方法,javascript中没有matchAll这个方法。 用while来实现类似 PHP 中的preg_match_all() :(by default7#zbphp.com) var html = document.getElementById('AgentIdP').getAttribute('onchange'); var exp ...
分类:编程语言   时间:2014-07-31 20:58:27    阅读次数:189
获得输入框的文本document.getElementById('id').value;
x=document.getElementById("demo").value;比如:document.getElementById("id").value是获取HTML标签中id=“id”的value的方法
分类:其他好文   时间:2014-07-31 19:35:37    阅读次数:166
Iframe 自适应高度的方法!
第一种方法:代码简单,兼容性还可以,大家可以先测试下。 1 function SetWinHeight(obj) 2 { 3 var win=obj; 4 if (document.getElementById) 5 { 6 if (win && !window.opera) 7 { ...
分类:其他好文   时间:2014-07-31 16:54:46    阅读次数:201
对Iframe和图表设置高度的优质代码
1 //对Iframe和图表设置高度 2 function f() { 3 parent.window.setWinHeight(parent.window.document.getElementById("frame_${queryCategory}")); 4 ...
分类:其他好文   时间:2014-07-31 16:48:56    阅读次数:152
使用ligerui操作新子窗口遇到的问题
1:调用父窗口某一个文件框,获取焦点,parent.window.document.getElementById("roleName").focus();2:关闭父窗口parent.$.ligerDialog.close(); //关闭弹出窗 利用这种方法关闭窗口存在一个问题 parent.$......
分类:其他好文   时间:2014-07-31 12:31:36    阅读次数:210
前后台交互
前台:document.getElementById("").value = 3; document.getElementById("").click(); 后台: protected void btnSearch_Click(object sender, EventArgs e) { Bin...
分类:其他好文   时间:2014-07-31 12:16:16    阅读次数:133
字体闪烁
字体闪烁function changeColor() { var color = "#336699|red"; color = color.split("|"); document.getElementById("blink").style.color = color[parseInt(Math.r...
分类:其他好文   时间:2014-07-31 12:14:26    阅读次数:230
jQuery -- 如何使用jQuery判断某个元素是否存在
通常我们要判断某个元素是否存在是用:[javascript]view plaincopyif(document.getElementById('example')){//dosomething}else{//dosomethingelse}然而在使用jQuery时,我们可以使用:[javascrip...
分类:Web程序   时间:2014-07-30 20:17:44    阅读次数:269
delphi 05 图片和超链接
超链接 /取消超链接 插入/取消 书签 插入图片 粘贴图上CTRL+v 截图 插入表情GIF WEB背景色 WEB背景图片 WebBrowser1.OleObject.document.getElementById('bgDiv').currentStyle.BackGroundImage WebB...
分类:其他好文   时间:2014-07-29 21:38:42    阅读次数:247
多层 iframe 嵌套 js 方法调用
一下午一个这破问题,浪费了不少时间,怎么也实现不了我的上上级iframe 刷新。NND。实现了,记录一下下吧: window.parent.parent.document.getElementById("content_frame").contentWindow.location.reload();...
分类:Web程序   时间:2014-07-29 11:14:16    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!