とほほのJavaScript入門
とほほのWWW入門 >
とほほのJavaScript入門
2000年4月30日版
文中の記号の意味
e3: Internet Explorer 3.X
e4: Internet Explorer 4.X
N2: Netscape Navigator 2.X
N3: Netscape Navigator 3.X
N4: Netscape Communicator 4.0〜4.05
N45: Netscape Communicator 4.06 or 4.5
NN: Netscape Navigator/Communicator
IE: Internet Explorer
[...]: ...の部分は省略可能。
サンプル
基本オブジェクト
- 数値(Number)
Number() NaN MAX_VALUE MIN_VALUE POSITIVE_INFINITY NEGATIVE_INFINITY
toString()
- 文字列(String)
String() length anchor() big() blink() bold() charAt()
charCodeAt() concat() fixed() fontcolor() fontsize() fromCharCode()
indexOf() italics() lastIndexOf() link() match() replace() search() slice()
small() split() sub() substr() substring() sup() toLowerCase() toUpperCase()
- 真偽(Boolean)
Boolean() toString()
- オブジェクト(Object)
Object() constructor prototype eval() toString() ユーザー定義オブジェクト
- 配列(Array)
Array() length concat() join() pop() push()
reverse() shift() slice() splice() sort() toString() unshift()
- 日付(Date)
Date() getYear() getMonth() getDate() getHours() getMinutes()
getSeconds() getTime() getTimezoneOffset() setYear() setMonth() setDate()
setHours() setMinutes() setSeconds() setTime() toGMTString() toLocaleString()
UTC() parse()
- 数学関数(Math)
E LN2 LN10 LOG2E LOG10E exp() log() SQRT1_2 SQRT2 sqrt() abs() ceil()
floor() round() PI sin() cos() tan() asin() acos() atan() atan2() max()
min() pow() random()
- 正規表現(RegExp)
RegExp() lastIndex ignoreCase global source lastMatch leftContext rightContext lastParen $n compile() exec() test() length index input
- 関数(Function)
function Function() arity arguments caller prototype toString()
- ビルトイン関数
escape() unescape() Number() String() parseFloat() parseInt() isNaN()
eval() taint() untaint()
- ウィンドウ(window)
clientInformation closed defaultStatus dialogArguments dialogHeight
dialogLeft dialogTop dialogTop dialogWidth innerHeight innerWidth
locationbar menubar name offscreenBuffering opener outerHeight outerWidth
pageXOffset pageYOffset parent personalbar returnValue scrollbars self
status statusbar toolbar top window alert() back() blur() captureEvents()
clearInterval() clearTimeout() close() confirm() disableExternalCapture()
enableExternalCapture() execScript() find() focus() forward() handleEvent()
home() moveBy() moveTo() navigate() open() print() prompt() releaseEvents()
resizeBy() resizeTo() routeEvent() scroll() scrollBy() scrollTo()
setInterval() setTimeout() showHelp() showModalDialog() stop()
- ヒストリー(window.history)
length current next previous back() forward() go()
- ロケーション(window.location)
href protocol host hostname port pathname hash search assign() reload()
replace()
- スクリーン(window.screen)
height width availHeight availWidth coorDepth pixelDepth bufferDepth
updateInterval
- ドキュメント(window.document)
activeElement alinkColor bgColor charset cookie defaultCharset domain
embeds expando fgColor formName lastModified linkColor parentWindow
plugins readyState referrer selection title URL vlinkColor captureEvents()
clear() close() createElement() createStyleSheet() elementFromPoint()
execCommand() getSelection() handleEvent() open() queryCommandEnabled()
queryCommandIndeterm() queryCommandState() queryCommandSupported()
queryCommandText() queryCommandValue() releaseEvents() routeEvent()
showHelp() write() writeln()
- アンカー(window.document.anchors)
length
- アプレット(window.document.applets)
length
- イメージ(window.document.images)
border complete height hspace lowsrc name src vspace width
handleEvent()
- レイヤ(window.document.layers)
length above background below bgColor clip.top clip.bottom clip.left
clip.right clip.height clip.width document left name pageX pageY parentLayer
siblingAbove siblingBelow src top visibility zIndex
captureEvents() handleEvent() load() moveAbove() moveBelow() moveBy()
moveTo() moveToAbsolute() releaseEvents() resizeBy() resizeTo()
routeEvent()
- リンク(window.document.links)
length hash host hostname href pathname port protocol search target
text handleEvent()
- イベント概要
- イベントハンドラ
onAbort onBlur onClick onDblClick onChange onDragDrop onError onFocus
onKeyDown onKeyPress onKeyUp onLoad onMouseDown onMouseMove onMouseOver
onMouseOut onMouseUp onMove onReset onResize onSelect onSubmit onUnload
- イベントオブジェクト(event)
target type data which modifiers height width layerX layerY pageX pageY
screenX screenY
その他
Copyright (C) 1996-1999 とほほ
http://wakusei.cplaza.ne.jp/twn/wwwjs.htm