Run a Script Each Time a Page Loads

Sample HTML function that displays a message box each time a Web page or HTA is loaded.

VBScript Code


Sub Window_Onload
    Msgbox "The application has started."
End Sub