関数 createList の for ループ内のコードに見られるように、プロパティ「リスト」を使用しようとしていますが、 var list = .....; のようなリストを定義しない限り、createList 内では機能しません。
var app =
{
list:document.bluetoothList.pairedDevices,
createList : function()
{
for(var i=0; i<5; i++)
{
app.list.options[i] = new Option("name" + i, "mac" + i);
}
document.getElementById("address").innerHTML=app.list.options[app.list.selectedIndex].value;
},
prints : function()
{
document.getElementById("address").innerHTML=app.list.options[app.list.selectedIndex].value;
}
}