Take a look at BeforeNavigate2() method of the web broswer control.
You just have to set the "cancel" param to .F. to stop the navigation.
In this method you receive all the data the server may have receive, you have to parse this data and act acordingly.
For the javascript, i never test it...
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca