javascript技巧2
來源:易賢網 閱讀:802 次 日期:2014-10-09 09:45:31
溫馨提示:易賢網小編為您整理了“javascript技巧2”,方便廣大網友查閱!

窗體事件綁定

document.onmousedown=scrollwindow;

元素

document.窗體.elements[索引]

對象綁定事件

document.all.xxx.detachEvent('onclick',a);

插件數(shù)目

navigator.plugins

取變量類型

typeof($js_libpath) == "undefined"

下拉框

下拉框.options[索引]

下拉框.options.length

查找對象

document.getElementsByName("r1");

document.getElementById(id);

定時

timer=setInterval('scrollwindow()',delay);

clearInterval(timer);

UNCODE編碼

escape() ,unescape

父對象

obj.parentElement(dhtml)

obj.parentNode(dom)

交換表的行

TableID.moveRow(2,1)

替換CSS

document.all.csss.href = "a.css";

并排顯示

display:inline

隱藏焦點

hidefocus=true

根據(jù)寬度換行

style="word-break:break-all"

自動刷新

<meta HTTP-EQUIV="refresh" CONTENT="8;URL=http://www.forasp.cn>

簡單郵件

<a href="mailto:aaa@bbb.com?subject=ccc&body=xxxyyy">

快速轉到位置

obj.scrollIntoView(true)

<a name="first">

<a href="#first">anchors</a>

更多信息請查看IT技術專欄

更多信息請查看腳本欄目
易賢網手機網站地址:javascript技巧2
關于我們 | 聯(lián)系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網