Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
document.formName.fieldName.value
document.formName[b][red]["fieldName"][/red][/b].value
document[b][red]["formName"]["fieldName"][/red][/b].value
document.formName[b][red][variableName][/red][/b].value
document.formName[b][red]["fieldName[]"][/red][/b].value
for(var i=0;i<10;i++){
document.formName[b][red]["field"+i][/red][/b].value='New Value';
}
window[b][red]["my"+"Dyn"+"Var"][/red][/b]="This string is in the variable 'myDynVar'.";
var p=location.search.substring(1).replace(/\+/g,' ').split("&");
for(var i=0;i<p.length;i++){
v=p[i].split("=");
window[b][red][unescape(v[0])][/red][/b]=unescape(v[1])
}
<script>
function CD(band,album,year,genre) {
this.band = band
this.album = album
this.year = year
this.genre = genre
}
function mySort(a,b){
if(a[b][red][SortBy][/red][/b] > b[b][red][SortBy][/red][/b]){return 1}
if(a[b][red][SortBy][/red][/b] < b[b][red][SortBy][/red][/b]){return -1}
return 0
}
var myCDs = new Array();
myCDs[0] = new CD("Metallica","And justice for all","1988","Metal")
myCDs[1] = new CD("Sepultura","Arise","1991","Trash")
myCDs[2] = new CD("Black Sabbath","Master of Reality","1976","Hard Rock")
var [red]SortBy[/red] = "band" //change this to the column you want to sort on.
myCDs.sort(mySort)
</script>
var fncName="myFunctionName";
window[b][red][fncName][/red][/b]()
var img = document.images[b][red][myImgVar][/red][/b]