No Workarounds Available:
complete
description export fileName find hspace import lowsrc next |
preference
previous refresh search splice split suffixes taint untaint vspace |
Areas Affected:
Javascript 1.2 new Functions
Example:
if (myFunction.arity == 3)
myFunction(x, y, z)
else
myFunction(x, y)
JScript 3.0 | // "function" is any function name
function_name.arguments.length() |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Table of Contents
captureEvents, getSelection, handleEvent, releaseEvents, scrollTo, scrollBy, routeEvent, screen, scrollbars, innerHeight, innerWidth, locationbar, menubar, outerHeight, outerWidthpersonalbar, toolbar, disableExternalCapture, enableExternalCapture, moveBy, moveTo, print, stop, home, statusbar, titlebar, border
Area Affected
Microsoft's objects:
document's properties: bgColor, charset, activeElement, aLinkColor,
BODY, cookie, defaultCharset, domain, expand, fgColor, fileCreatedDate,
fileModifiedDate, fileSize, lastModified, linkColor, location, parentWindow,
protocol, readyState, selection, TITLE, uniqueID, URL, vlinkColor
document's colletions: all, anchors, children, embeds, forms,
frames, images, links, scripts, styleSheets
document's methods: attachEvent, clear, close, createElement,
createStyleSheet, detachEvent, elementFromPoint, execCommand, open, queryCommandEnabled,
queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue,
recalc, write, writeln.
document's events: onclick, ondblclick, ondrag, ondragend, ondragenter,
ondragleave, ondragover, ondragstart, ondrop, onhelp, onkeydown, onkeypress,
onkeyup, onmousedown, onmousemove, on mouseout, onmouseover, onmouseup,
onpropertychange, onreadystatechange
window's properties: name, clientInformation, closed, complete,
defaultStatus, dialogArguments, dialogHeight, dialogLeft, dialogTop, dialogWidth,
document, event, external, frames, history, length, location, navigator,
offscreenBuffering, opener, parent, returnValue, screen, screenLeft, screenTop,
self, status, top
window's methods: alert, attachEvent, blur, clearInterval, clearTimeout,
close, confirm, detachEvent, execScript, focus, moveBy, moveTo, navigate,
open, prompt, resizeBy, resizeTo, scroll, scrollBy, scrollTo, setInterval,
setTimeout, showHelp, showModelDialog
window's events: onbeforeunload, onblur, onerror, onfocus, onhelp,
onload, onresize, onunload.
Netscape's document object:
document's properties: alinkColor, anchors, applets, bgColor,
cookie, domain, embeds, fgColor, formName, forms, images, lastModified,
layers, linkColor, links, plugins, referrer, title, URL, vlinkColor.
document's methods: captureEvents, close, getSelection, handleEvent,
open, releaseEvents, routeEvent, write, writeln.
document's events: onClick, onDblClick, onKeyDown, onKeypress,
onKeyUp, onMouseDown, onMouseUp
window's properties: closed, defaultStatus, document, frames,
history, innerHeight, innerWidth, length, location, locationbar, menubar,
name, opener, outerHeight, outerWidth, pageXOffset, pageYOffset, parent,
personalbar, scrollbars, self, status, statusbar, toolbar, top, window
window's methods: alert, back, blur, captureEvents, clearInterval,
clearTimeout, close, confirm, disableExternalCapture, enableExternalCapture,
find, focus, forward, handleEvent, home, moveBy, moveTo, open, print, prompt,
releaseEvents, resizeBy resizeTo, routeEvent, scroll, scrollBy, scrollTo,
setInterval, setTimeout, stop
window's events: onBlur, onDragDrop, onError, onFocus, onLoad,
onMove, onResize, onUnload
CSS Properties
Font and Text Properties: fontFamily, fontSize, fontStyle, fontVariant,
fontWeight, font, letterSpacing, lineHeight, wordSpacing, textAlign, textDecoration,
textIndent, textTransform, verticalAlign
Colors and Background Properties: color, backgroundAttachment,
backgroundColor, backgroundImage, backgroundPosition, backgroundRepeat,
background
Box/Layout Properties: borderBottomColor, borderLeftColor, borderRightColor,
borderTopColor, borderColor, borderBottomStyle, borderLeftStyle, borderRightStyle,
borderTopStyle, borderStyle, borderBottomWidth, borderLeftWidth, borderRightWidth,
borderTopWidth, borderWidth, borderBottom, borderLeft, borderRight, borderTop,
border, clear, float, marginBottom, marginLeft, marginRight, marginTop,
margin, paddingBottom, paddingLeft, paddingRight, paddingTop, padding
Positioning Properties: clop, height, left, overflow, position,
top, visibility, width, zIndex
Other Properties: display, cursor, listStyleImage, listStylePosition,
listStyleType, listStyle
To use this library, you need to include the file, http://www.insidedhtml.com/positioning/dhtmlLib.js,
in your script as follows:
<SCRIPT SRC="http://www.insidedhtml.com/positioning/dhtmllib.js"
LANGUAGE="Javascript"></SCRIPT>
Table of Contents
Areas Affected:
Javascript 1.1 Properties
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1 Functions
In JavaScript 1.1, current can only be used when data tainting is enabled
in JavaScript 1.2, current can only be used in a signed script with
the 'UniversalBrowserRead' privilege enabled.
JScript 3.0 | See JScript 1.0 Workaround |
JScript 2.0 | See JScript 1.0 Workaround |
JScript 1.0 | document.url() |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1 Properties
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1 Properties
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.2 new Functions
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.2 new Functions
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1 Function
JScript 3.0 | Workarounds can be found within the Input Objects in DOM 1.0 |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.2 new Functions
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1 Property
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.2 Keyword
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Layer's Properties: above, background, bgColor, below, clip.bottom,
clip.height, clip.left, clip.right, clip.top, clip.width, document, left,
name, pageX, pageY, parentLayer, siblingAbove, siblingBelow, src, top,
visibility, zIndex
Layer's Methods: captureEvents, handleEvent, load, moveAbove,
moveBy, moveTo, moveToAbsolute, releaseEvents, resizeBy, resizeTo, routeEvent.
Layer's Events: onBlur, onFocus, onLoad, onMouseOut, onMouseOver.
IFrame's Properties: accessKey, align, dataFld, dataSrc, frameBorder,
frameSpacing, hspace, id, lang, language, marginHeight, marginWidth, name,
noResize, scrolling, src, style, tabIndex, title, vspace, innerHTML, innerText,
isTextEdit, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth,
outerHTML, outerText, parentElement, parentTextEdit, recordNumber, sourceIndex,
style, tagName, uniqueID
IFrame's Methods: attachEvent, blur, contains, detashEvent,
focus, getAttribut, insertAdjacentHTML, insertAdjacentText, removeAttribute,
scrollIntoView, setAttribute
Targeting Layers: http://www.insidedhtml.com/tips/contents/ts10/page1.asp
Table of Contents
Areas Affected:
Javascript 1.1 Image Property
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1 Object
JScript 3.0 | see Navigator.mimeTypes collections within the toolbox
reference window.
The following code displays the type, description, suffixes, and enabledPlugin properties for each MimeType object on a client: document.writeln("<TABLE BORDER=1><TR VALIGN=TOP>",
|
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1 Tainted Signed Scripts
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
OnAbort, OnDragDrop, OnMove, OnReset
Areas Affected:
Events, Event Handler, Event Model
Microsoft's Event Model:
event object's properties: altKey, button, cancelBubble, clientX, clientY,
ctrlKey, dataFld, dataTransfer, fromElement, keyCode, offsetX, offsetY,
propertyName, reason, recordset, returnValue, screenX, screenY, shiftKey,
srcElement, srcFilter, toElement, type, x, y.
Microsoft's Events: onabort, onafterupate, onbeforecopy, onbeforecut,
onbeforepaste, onbeforeunload, onbeforeupdate, onblur, onbounce, oncellchange,
onchange, onclick, oncopy, oncut, ondataavailable, ondatasetchanged, ondatasetcomplete,
ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart,
ondrop, onerror, onerrorupdate, onfilterchange, onfinish, onfocus, onhelp,
onkeydown, onkeypress, onkeyup, onload, onlosecapture, onmousedown, onmousemove,
onmouseout, onmouseover, onmouseup, onpaste, onpropertychange, onreadystatechange,
onreset, onresize, onrowenter, onrowexit, onrowsdelete, onrowsinserted,
onscroll, onselect, onselectstart, onstart, onsubmit, onunload.
Netscape's Event Model:
event object's properties: data, height, layerX, layerY, modifiers,
pageX, pageY, screenX, screenY, target, type, which, width
Netscape's Events: onAbort, onBlur, onChange, onClick, onDblClick,
onDragDrop onError, onFocus, onKeyDown, onKeyPress, onKeyUp, onLoad, onMouseDown,
onMouseMove, onMouseOut, onMouseOver, onMouseUp, onMove, onReset, onResize,
onSelect, onSubmit, onUnload
Microsoft:
1. Link
2. Layer
3. document
4. window
5. default handler
Netscape:
1. Window
2. document
3. layer
4. link
5. default handler
Microsoft uses an event bubbling model. Event bubbling is a process
in which the object associated with where the event happened receives the
event first. This object then choose to process the event or pass
it along to its parent object.
NN4 uses an event capturing model, the opposite of an event bubbling
model. Rather than events being generated by the bottom most object in
the hierarchy, then bubbled up, events in the event capturing model are
generated at the top of the object hierarchy and then fall through to events
lower in the hierarchy. A limited number of page elements can generate
and process events. For example, onMouseOver is handled only images and
links.
To write scripts that will work in both browser's, don't use the feature of passing any events to parent event handlers, since the passing order is reversed in the two browsers. Instead, handle each event in a single function. Also, use only the events defined for the Netscape browser, since those will work in both.
References
1) Bubble Power: Event Handling in Internet Explorer 4.0 http://www.microsoft.com/workshop/author/script/ie4event.asp
2) Dynamic HTML and The New Event Models http://www.dhtmlzone.com/articles/eventmodels.html
3) Cross Browser Dynamic HTML http://www.dhtmlzone.com/articles/dhtml.html
Table of Contents
pageXOffsetpageYOffset, personalbar, Plugin, resizeBy, resizeTo, scrollbars, opener
Areas Affected:
Microsoft's objects:
document's properties: bgColor, charset, activeElement, aLinkColor,
BODY, cookie, defaultCharset, domain, expand, fgColor, fileCreatedDate,
fileModifiedDate, fileSize, lastModified, linkColor, location, parentWindow,
protocol, readyState, selection, TITLE, uniqueID, URL, vlinkColor
document's colletions: all, anchors, children, embeds, forms, frames,
images, links, scripts, styleSheets
document's methods: attachEvent, clear, close, createElement, createStyleSheet,
detachEvent, elementFromPoint, execCommand, open, queryCommandEnabled,
queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue,
recalc, write, writeln.
document's events: onclick, ondblclick, ondrag, ondragend, ondragenter,
ondragleave, ondragover, ondragstart, ondrop, onhelp, onkeydown, onkeypress,
onkeyup, onmousedown, onmousemove, on mouseout, onmouseover, onmouseup,
onpropertychange, onreadystatechange
window's properties: name, clientInformation, closed, complete, defaultStatus,
dialogArguments, dialogHeight, dialogLeft, dialogTop, dialogWidth, document,
event, external, frames, history, length, location, navigator, offscreenBuffering,
opener, parent, returnValue, screen, screenLeft, screenTop, self, status,
top
window's methods: alert, attachEvent, blur, clearInterval, clearTimeout,
close, confirm, detachEvent, execScript, focus, moveBy, moveTo, navigate,
open, prompt, resizeBy, resizeTo, scroll, scrollBy, scrollTo, setInterval,
setTimeout, showHelp, showModelDialog
window's events: onbeforeunload, onblur, onerror, onfocus, onhelp,
onload, onresize, onunload.
Netscape's document object:
document's properties: alinkColor, anchors, applets, bgColor,
cookie, domain, embeds, fgColor, formName, forms, images, lastModified,
layers, linkColor, links, plugins, referrer, title, URL, vlinkColor.
document's methods: captureEvents, close, getSelection, handleEvent,
open, releaseEvents, routeEvent, write, writeln.
document's events: onClick, onDblClick, onKeyDown, onKeypress, onKeyUp,
onMouseDown, onMouseUp
window's properties: closed, defaultStatus, document, frames,
history, innerHeight, innerWidth, length, location, locationbar, menubar,
name, opener, outerHeight, outerWidth, pageXOffset, pageYOffset, parent,
personalbar, scrollbars, self, status, statusbar, toolbar, top, window
window's methods: alert, back, blur, captureEvents, clearInterval,
clearTimeout, close, confirm, disableExternalCapture, enableExternalCapture,
find, focus, forward, handleEvent, home, moveBy, moveTo, open, print, prompt,
releaseEvents, resizeBy, resizeTo, routeEvent, scroll, scrollBy, scrollTo,
setInterval, setTimeout, stop
window's events: onBlur, onDragDrop, onError, onFocus, onLoad, onMove,
onResize, onUnload
CSS Properties
Font and Text Properties: fontFamily, fontSize, fontStyle, fontVariant,
fontWeight, font, letterSpacing, lineHeight, wordSpacing, textAlign, textDecoration,
textIndent, textTransform, verticalAlign
Colors and Background Properties: color, backgroundAttachment, backgroundColor,
backgroundImage, backgroundPosition, backgroundRepeat, background
Box/Layout Properties: borderBottomColor, borderLeftColor, borderRightColor,
borderTopColor, borderColor, borderBottomStyle, borderLeftStyle, borderRightStyle,
borderTopStyle, borderStyle, borderBottomWidth, borderLeftWidth, borderRightWidth,
borderTopWidth, borderWidth, borderBottom, borderLeft, borderRight, borderTop,
border, clear, float, marginBottom, marginLeft, marginRight, marginTop,
margin, paddingBottom, paddingLeft, paddingRight, paddingTop, padding
Positioning Properties: clop, height, left, overflow, position, top,
visibility, width, zIndex
Other Properties: display, cursor, listStyleImage, listStylePosition,
listStyleType, listStyle
Dynamic HTML gives the developer full control over their web page. Dynamic HTML in Microsoft's Internet Explorer 4.0 provides complete access to every element, every style, all the content on the page, as well as any user event anywhere on the page.
Netscape Navigator 4.0 on the other hand, only supports events on a
few elements and support for CSS-Positioning, and does not have the ability
to change the style nor access the content on the page.
Therefore, when designing for both browsers, you need to look for a
common ground or you need to clearly understand the browser's capabilities
and work around them as appropriate. The common ground for Dynamic HTML
is CSS Positioning. While the syntax for positioning elements is the same,
the object model for animating and responding to user events is different.
This is why DHTMLLib is designed. DHTMLLib is a cross-browser solution for developing pages with CSS positioning. Different from most cross-browser solutions, DHTMLLib not only allows you to animate positioned elements, but you also have access to the user's events. For events, Internet Explorer's powerful event bubbling model is emulated in Netscape for positioned elements, allowing you to write generic, reusable code.
With this library, it resolves most of the incompatibility issues regarding layers, CSS positioning, event handling, write your code with IE4's object model (DOM) and it will run on both 4.0 browsers.
To use this library, you need to include the file, http://www.insidedhtml.com/positioning/dhtmlLib.js, in your script as follows:
<SCRIPT SRC="http://www.insidedhtml.com/positioning/dhtmllib.js" LANGUAGE="Javascript"></SCRIPT>
References
Article "DHTML Library", http://www.insidedhtml.com/positioning/home.htm
Table of Contents
Areas Affected:
Javascript 1.2
JScript 3.0 | The most common means of getting user information in IE
is through:
Window.ClientInformation() |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.2 new Functions
Example:
The following code displays the myFish array before and after removing its last element. It also displays the removed element:
myFish = ["angel", "clown", "mandarin", "surgeon"];document.writeln("myFish
before: " + myFish);
popped = myFish.pop();
document.writeln("myFish after: " + myFish);
document.writeln("popped this element: " + popped);
This example displays the following:
myFish before: ["angel", "clown", "mandarin", "surgeon"]
myFish after: ["angel", "clown", "mandarin"] popped this element: surgeon
JScript 3.0 | //returns a new array of arr.length-1 with last element
removed.
function PopJS11(arr) { if (arr.length <=1) { return new Array (); } var newarr = new Array(arr.length-1);
|
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.2 Signed Scripts
Example:
reading preference
navigator.preference(pref);
setting preference
navigator.preference(pref, setting);
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1 Tainted
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.2 new Functions
Example:
The following code displays the myFish array before and after adding
elements to its end. It also displays the last element added:
myFish = ["angel", "clown"];
document.writeln("myFish before: " + myFish);
pushed = myFish.push("drum", "lion");
document.writeln("myFish after: " + myFish);
document.writeln("pushed this element last: " + pushed);
This example displays the following:
myFish before: ["angel", "clown"]
myFish after: ["angel", "clown", "drum", "lion"] pushed this
element last: lion
JScript 3.0 | //returns a new array of arr.length+1 with 'data' appended.
function PushJS11(arr, data) { arr[arr.length] = data; return arr; } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.0 Tainted
Example:
window.location.search = "?qt=ben+jerry&col=WW&Search.x=45&Search.y=9"
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.2 new Functions
Example:
The following code displays the myFish array before and after removing its first element. It also displays the removed element:
myFish = ["angel", "clown", "mandarin", "surgeon"];
document.writeln("myFish before: " + myFish);
shifted = myFish.shift();
document.writeln("myFish after: " + myFish);
document.writeln("Removed this element: " + shifted);
This example displays the following:
myFish before: ["angel", "clown", "mandarin", "surgeon"]
myFish after: ["clown", "mandarin", "surgeon"]
Removed this element: angel
JScript 3.0 | function ShiftJS11(arr) {
if (arr.length <=1) { return new Array (); } var newarr = new Array();
|
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.2 new Functions
Example:
The following script illustrate the use of splice:
<SCRIPT LANGUAGE="JavaScript1.2">
myFish = ["angel", "clown", "mandarin", "surgeon"];
document.writeln("myFish: " + myFish + "<BR>");
removed = myFish.splice(2, 0, "drum");
document.writeln("After adding 1: " + myFish);
document.writeln("removed is: " + removed + "<BR>");
removed = myFish.splice(3, 1)
document.writeln("After removing 1: " + myFish);
document.writeln("removed is: " + removed + "<BR>");
removed = myFish.splice(2, 1, "trumpet")
document.writeln("After replacing 1: " + myFish);
document.writeln("removed is: " + removed + "<BR>");
removed = myFish.splice(0, 2, "parrot", "anemone", "blue")
document.writeln("After replacing 2: " + myFish);
document.writeln("removed is: " + removed);
</SCRIPT>
This script displays:
myFish: ["angel", "clown", "mandarin", "surgeon"]
After adding 1: ["angel", "clown", "drum", "mandarin", "surgeon"]
removed is: undefined
After removing 1: ["angel", "clown", "drum", "surgeon"]
removed is: mandarin
After replacing 1: ["angel", "clown", "trumpet", "surgeon"]
removed is: drum
After replacing 2: ["parrot", "anemone", "blue", "trumpet", "surgeon"]
removed is: ["angel", "clown"]
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1
In Navigator 4.0, Split has the following additions:
It can take a regular expression argument, as well as a fixed string,
by which to split the object string. If separator is a regular expression,
any included parenthesis cause submatches to be included in the returned
array. It can take a limit count so that it won't include trailing empty
elements in the resulting array.
Examples
Example 1. The following example defines a function that splits a string into an array of strings using the specified separator. After splitting the string, the function displays messages indicating the original string (before the split), the separator used, the number of elements in the array, and the individual array elements.
function splitString (stringToSplit,separator) {
arrayOfStrings = stringToSplit.split(separator)
document.write ('<P>The original string is: "' + stringToSplit +
'"')
document.write ('<BR>The separator is: "' + separator + '"')
document.write ("<BR>The array has " + arrayOfStrings.length + "
elements: ")
for (var i=0; i < arrayOfStrings.length; i++) {
document.write (arrayOfStrings[i] + " / ")
}
}
var tempestString="Oh brave new world that has such people in it."var
var space=" "
var comma=","
splitString(tempestString,space)
This example produces the following output:
The original string is: "Oh brave new world that has such people in it."The separator is: " "The array has 10 elements: Oh / brave / new / world / that / has / such / people / in / it. /
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.2 new Functions
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1
Example:
To taint the src property of a layer object, which is not normally
tainted, use a statement such as:
layer1.src = taint(layer1.src)
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.2 new Functions
Example:
The following code displays the myFish array before and after adding
elements to it.
myFish = ["angel", "clown"];
document.writeln("myFish before: " + myFish);
unshifted = myFish.unshift("drum", "lion");
document.writeln("myFish after: " + myFish);
document.writeln("New length: " + unshifted);
This example displays the following:
myFish before: ["angel", "clown"]
myFish after: ["drum", "lion", "angel", "clown"]
JScript 3.0 | //returns a new array of arr.length+1 with 'data' appended.
function UnShiftJS11(arr, data) { var newarr = new Array () newarr[0] = data; for ( var i=0; i<arr.length; i++ ) { newarr[i+1] = arr[i]; } return newarr; } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |
Areas Affected:
Javascript 1.1
JScript 3.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
VBScript 3.0 | No Workaround exists |