а как его принять
В справке ведь написано что с помощью функции EventType()
If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10, 10, 580, 280, "http://www.purebasic.com")
; Note: if you want to use a local file, change last parameter to "file://" + path + filename
Repeat
Event=WaitWindowEvent()
If Event = #PB_Event_Gadget
If EventGadget() = 0
If EventType() = #PB_EventType_DownloadEnd
Debug "Страница загружена"
EndIf
EndIf
EndIf
Until Event = #PB_Event_CloseWindow
EndIf