13 lines
384 B
JavaScript
Executable File
13 lines
384 B
JavaScript
Executable File
function getRings()
|
|
{
|
|
var rings = new Array("gold band", "silver band", "turquoise inlay", "emerald stone", "ruby stone");
|
|
var r = rings.length;
|
|
r_title = "Ring Inventory";
|
|
document.getElementById('ring_head').innerHTML = r_title;
|
|
for (i = 0; i <= (r - 1); i++)
|
|
{
|
|
document.getElementById('ring_inventory').innerHTML = (rings[i] + "<br /> ");
|
|
}
|
|
document.write("</table>");
|
|
}
|