随笔分类 - JavaScript
摘要:// ==UserScript==// @name plugin-dodo_chatroom// @namespace // @description Have fun in dodo chatroom// @author Jeremy huang// @homepage // @include *doo.idv.tw/*// ==/UserScript==var $;// Add jQuery(function(){ if (typeof unsafeWindow.jQuery == 'undefined') { ...
阅读全文
摘要:在frame內操作主窗口 的兩個方法getElementsByTagNamevar ff=window.parent.window.document.getElementsByTagName("frameset"); 2.document.getElementsByidvar ff=window.parent.window.document.getElementsByid("frameset"); //获得frameset上的document对象ff.contentWindow.document.getElementById('oneElemen
阅读全文