Nescape Navigator 4 Gloval Object


Object Property     ºó ¹ÙÅÁÀº ObjectÀÇ ±¸¼º¿ä¼Ò(Property)  
Object Methodȸ»ö ¹ÙÅÁÀº Object ¸Þ¼Òµå
Object EventÁøÇÑȸ»öÀº Object À̺¥Æ®
N3NN3¿¡¼­ NN4±îÁö Áö¿øµÊ(IE4´Â È®½ÇÄ¡ ¾ÊÀ½)
N4Netscape Navigator(NN4)¿¡¼­ Áö¿øµÊ
M4MS Internet explorer(IE4)¿¡¼­ Áö¿øµÊ
J2MSIE 3, JScript.dll Version 2¿¡¼­ Áö¿øµÊ
(S)NN4ÀÇ signed-script Áö¿øÀÌ ÇÊ¿äÇÔ



Array
length J2prototype N3,J2
concat(array2) N4,M4join("char") J2push() N4
pop()N4reverse() J2shift() N4
slice(i,[j]) N4,M4sort(compareFunc) J2unshift() N4
 
 *Array N3,J2


Date
prototype N3
get/set[UTC]Date()get/set[UTC]Day()get/set[UTC]Hours()
get/set[UTC]Minutes()get/set[UTC]Month()get/set[UTC]Seconds()
get/set[UTC]Time()get/set[Full]Year()getTimezoneOffset()
parse("dateString")toGMTString()toLocaleString()
toString()UTC(date vals)
 
 *[UTC] and [Full] add-ons available in N4,M4

Event
data (1)layerXlayerY
modifiers (2)pageXpageY
screenXscreenYtarget
typewhich (3)
 
 *event N4
 *(1)URL of dragdrop event
 *(2)Event.ALT_MASK, Event.CONTROL_MASK, Event.SHIFT_MASK,      Event.META_MASK
 *(3)Mouse button (1=left; 3=right); Key char code


IE4 Event
altKeybuttoncancelBubble
clientXclientYctrlKey
fromElementkeyCodeoffsetX
offsetYreasonreturnValue
screenXscreenYshiftKey
srcElementsrcFiltertoElement
typexy

* IE4 ¿¡¼­ event Object´Â windowÀÇ ObjectÀÌ´Ù. window.event


Event Çڵ鷯
ALT_MASKCONTROL_MASKSHIFT_MASK
META_MASKMOUSEDOWNMOUSEUP
MOUSEOVERMOUSEOUTMOUSEMOVE
MOUSEDRAGCLICKDBLCLICK
KEYDOWNKEYUPEYPRESS
DRAGDROPFOCUSBLUR
SELECTCHANGERESET
SUBMITSCROLLLOAD
UNLOADXFER_DONEABORT
ERRORLOCATEMOVE
RESIZEFORWARDHELP
BACK

 *event Çڵ鷯 N4


Function
callerarguments[ ]prototype
 
 *function N3,J2


Math
ELN2LN10
LOG2ELOG10EPI
SQRT1_2SQRT2
abs(val)acos(val)asin(val)
atan(val)atan2(val1, val2)ceil(val)
cos(val)exp(val)floor(val)
log(val)max(val1, val2)min(val1, val2)
pow(val1, power)random()round(val)
sin(val)sqrt(val)tan(val)


Navigator(plguIn,mimeType)
appCodeNameappNameappVersion
language N4mimeTypes[i]N3platform N4
plugins[i]N3userAgent
javaEnabled()N3,M4preference(name[,val])N4,(S),(2)taintEnabled()N3,M4
plugInmimeType
description   filename   description   enabledPlugin  
lengthname    typesuffixes
refresh()   
* plugin N3 * mimetype N3
 
 *Navigator(1)
 *(1)Contained by window object in M4
 *(2)Preference names: general.always_load_images; security.enable_java; javascript.enabled; browser.enable_style_sheets; autoupdate.enabled; network.cookie.cookieBehavior; network.cookie.warnAboutCookies


Number
MAX_VALUEMIN_VALUENaN
NEGATIVE_INFINITYPOSITIVE_INFINITYprototype
toString()
 
 *Number N3,J2

RegExp
inputmultilinelastMatch
lastParenleftContextrightContext
$1...$9
 
 *RegExp N4,M4


Regular Expression
globalignoreCaselastIndex
source
compile(regexp)exec("string") (1)test("string")
str.match(regexp) (1)str.replace(regexp,str) (1)str.search(regexp)
str.split(regexp[,limit]
 
 *Regular Expression N4,M4
 *(1)Returns an array with properties: index, input, [0],[1]...[n]


Screen
availHeightavailLeft (2)availTop (2)
availWidth   colorDepth  height
widthpixelDepth (2)

* screen N4,M4,(1)
* (1)Contained by window object in M4
* (2)Not in M4


Sting
Stringlengthprototype N3
anchor("anchorName")big()blink()
bold()charAt(index)charCodeAt([i])N4,M4
concat(string2) N4,M4fixed()fontcolor(#rrggbb)
fontsize(1to7)fromCharCode(n1...) N4,M4indexOf("str" [,i])
italics()lastIndexOf("str" [,i])link(URL)
match(regexp) N4,M4replace(regexp,str) N4,M4search(regexp) N4,M4
slice(i,j) N4,J2small()split(char) N3,(1),M4
strike()sub()substr(start,length) N4,M4
substring(intA, intB)sup()toLowerCase()
toUpperCase()

 *(1)N4¿¡¼­ regexp parameter »ç¿ëÇÒ ¼ö ÀÖ°í, ³ª´©°íÀÚ ÇÏ´Â °¹¼öµµ µÎ¹øÀç parameter¿¡ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×¸®°í, °ø¹é¹®ÀÚ parameter´Â white space ¹®ÀÚ¸¦ Æ÷ÇÔÇÕ´Ï´Ù.





ÀÌ ÆäÀÌÁö´Â Danny GoodmanÀÇ pdfÈ­ÀÏÀ» htmlÈ­ÀÏ·Î ¹Ù²å½À´Ï´Ù.
±× ºÐ²² °¨»ç¸¦ µå¸³´Ï´Ù.
http://www.dannyg.com/javascript/jsminifaq.html


TOP            Go to Source            TOP