document.forms[0].Status.value = "open"
reply = prompt("Status = 'Open' or 'Closed'?", "Open")
while (reply != "Open" && reply != "Closed") {
reply = prompt("Enter 'Open' or 'Closed'", "Open")
}
document.forms[0].Status.value = reply
r = document.forms[0].Status.value
while (r != "Open" && r != "Closed") {
r = prompt("Status must be 'Open' or 'Closed'", "Open")
}
document.forms[0].Status.value = r
@Command([FileSave]);
@Command([FileCloseWindow])
function testEvent(eventName) {
alert("This is the " + eventName + " event")
}
フォーム上の別のイベント (フィールド、アクション、ホットスポットを含む) に呼び出されると、次の関数が実行されます。
TestEvent("onLoad")