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.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="Tracy Dryden">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script language="JavaScript" type="text/javascript">
function moveEm() {
var sSelected = "";
var theSel = document.forms('myForm').elements('mySel');
for ( var x = 0; x < theSel.options.length; x++ ) {
if ( theSel.options(x).selected ) {
sSelected += ( sSelected == "" ? "" : ";" );
sSelected += theSel.options(x).value;
}
}
document.forms('myForm').elements('myBox').value = sSelected;
}
function clearIt() {
document.forms('myForm').elements('myBox').value = "";
document.forms('myForm').elements('mySel').selectedIndex = -1;
}
</script></head>
<body>
<div align="center">
<form name="myForm">
<select name=mySel size=5 multiple>
<option value="red">red</option>
<option value="green">green</option>
<option value="blue">blue</option>
<option value="orange">orange</option>
<option value="white">white</option>
<option value="black">black</option>
<option value="yellow">yellow</option>
<option value="purple">purple</option>
<option value="gray">gray</option>
<option value="brown">brown</option>
<option value="turquoise">turquoise</option>
</select>
<br>
<input type=text name="myBox" size=50 value="">
<br>
<input type=button onclick="moveEm()" value="Move Em"> <input type=button onclick="clearIt()" value="Reset">
</body>
</html>
function clearListbox() {
var theSel = document.forms['myForm'].elements['mySel'];
for ( var x = theSel.options.length-1; x >= 0; x-- ) {
theSel.remove(x);
}
}
javascript:var myArray = [1, 2, 3, 4, 5]; alert(myArray.length); alert(myArray); myArray.length = 2; alert(myArray);