This fails (despite my HTML files having valid <title></title> tags):
Code: Select all
If OpenWindow(0, 200, 200, 800, 600, "WebGadget", #PB_Window_SystemMenu)
WebGadget(0, 10, 10, 780, 580, "file://index.html")
Repeat
Event = WaitWindowEvent()
If EventType() = #PB_EventType_TitleChange
Debug "changed" ; Never seen!
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
Code: Select all
If OpenWindow(0, 200, 200, 800, 600, "WebGadget", #PB_Window_SystemMenu)
WebGadget(0, 10, 10, 780, 580, "file://index.html")
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Gadget
If weburl$<>oldweburl$
oldweburl$=weburl$
Debug "changed" ; User has to move the mouse after clicking a link to see this!
EndIf
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
(PS. Why isn't there a simple #PB_EventType_UrlChange function to detect this?).