I posted this by mistake in WebSDK. Sorry.
Instead of using the Titlechange event, i use the CancelLoad one.
Here is an example :
In a button, the code that gets cookies :
In the CancelLoad event, we look if the token is present. If so, the URL is decoded, its encoding defined, then split with "jsreturn", and finally available in the array jsreturn(1). Used here in a MsgBox.
Function CancelLoad(URL as String) As Boolean if instr(URL,"jsreturn") > 0 then dim theURLString as string theURLString = DefineEncoding(DecodeURLComponent(URL), Encodings.UTF8 ) dim jsreturn() as string = split(theURLString,"jsreturn") MsgBox Replaceall(jsreturn(1),";",EndOfLine) return true end if End Function