码迷,mamicode.com
首页 >  
搜索关键字:navigator    ( 1680个结果
iframe提取与改变父页面元素
一:利用jquery方法获得 1:取值 $(window.parent.document).find("#second_navigator").html(); 2:改变父页面元素 $(window.parent.document).find("#second_navigator").html(“我是从iframe里传来的值”); 二:javaScript方...
分类:其他好文   时间:2014-11-25 16:28:23    阅读次数:142
转载[Mobile Web]Web中如何分辨移动设备?(iPad、iPhone、Android)
已验证过javascript方法可以使用var deviceAgent = navigator.userAgent.toLowerCase(); 02. var agentID = deviceAgent.match(/(iphone|ipod|ipad|android)/); 03. if(a.....
分类:移动开发   时间:2014-11-24 20:37:25    阅读次数:138
每天一个JavaScript实例-cookie的使用方法
每天一个JavaScript实例-cookie的使用方法 div{margin:5px;} window.onload = function(){ if(navigator.cookieEnabled){ document.getElementById("set").onclick = setCookie; document.getElementById("get").oncl...
分类:编程语言   时间:2014-11-21 16:24:00    阅读次数:181
Javascript设计思想!
# 从古代说起要理解Javascript的设计思想,必须从它的诞生说起。1994年,网景公司(Netscape)发布了Navigator浏览器0.9版。这是历史上第一个比较成熟的网络浏览器,轰动一时。但是,这个版本的浏览器只能用来浏览,不具备与访问者互动的能力。比如,如果网页上有一栏"用户名"要求填...
分类:编程语言   时间:2014-11-20 21:53:41    阅读次数:165
window.showModalDialog 在谷歌Uncaught TypeError: undefined is not a function
if(navigator.userAgent.indexOf("Chrome") >0 ){ var winOption = "height="+height+",width="+width+",top=50,left=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes...
分类:Windows程序   时间:2014-11-20 15:26:15    阅读次数:242
DHTML中window的使用
window对象是对浏览器窗口进行操作的对象。以下列出一些常用的对象(三级为对象的方法、属性) |-navigator:是对浏览器信息进行操作的对象 |-history:包含用户浏览过的url信息 |-back:后退(前一个url) |-forward:前进(后一个url) |...
分类:Windows程序   时间:2014-11-20 00:00:05    阅读次数:367
js 判断浏览器的类型
function getBrowser() { var Sys = {}; var ua = navigator.userAgent.toLowerCase(); var s; (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : (s = ua.mat...
分类:Web程序   时间:2014-11-19 21:47:20    阅读次数:166
C# Cookie编程
Cookie,他最早出现是在Netscape Navigator 2.0中。Cookie其实就是由Web服务器创建的、将信息存储在机上的文件。那么为什么Web服务器要在客户机上面创建如此文件?这是因为当客户机发送一个请求到WEB服务器时(譬如准备浏览页面时),无论此客户机.是否是第一次来访,服务器都...
分类:Windows程序   时间:2014-11-19 00:28:39    阅读次数:301
js判断客服端
ua: function () { return navigator.userAgent.toLowerCase() }, isMobile: function () { return M.ua().match(/iPhone|iPad|iPod|Android|IEMobile/i) }, isA...
分类:Web程序   时间:2014-11-17 13:46:27    阅读次数:164
Extjs 兼容IE10
在对应的地方将Ext.isIE修改成: Ext.isIE &&!(/msie9/.test(navigator.userAgent.toLowerCase())&&document.documentMode===9) &&!(/msie10/.test(navigator.userAgent....
分类:Web程序   时间:2014-11-17 11:55:37    阅读次数:166
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!