Re: Webviewer and Javascript
try the before navigate event
Re: Webviewer and Javascript
This does not catch the data unfortunately.
I suppose I need to parse the JS function to get the URL, but not sure if this is feasable. I would be interested in hearing your thoughts?
Re: Webviewer and Javascript
as many times when a new window is opened by java script, some variables are passed with the url, as parameters, it will probably take more than the url to make it work correctly
if any events of the web browser can catch the navigation it should have the complete url with parameters, you can the cancel the navigation and open it in your browser
other possibilities are to temporarily set your browser as default browser
or not a good solution, but desperate measures.............
loop through shell windows, find the new one, get the url and close, then open in your browser
Re: Webviewer and Javascript
Thanks WestConn1, couple of good ideas there.
On the point "Make my browser the default browser". How would I acheive this as it maybe a quick fix for me?
I'll have a look in the forums to see if I can find out...
Thanks again.
Re: Webviewer and Javascript
Setting the default browser was pretty straight-forward. However, it did not solve my JavaScript popup window issue.
On the following site, there are a couple of "Open Window 1" links.
http://www.blazonry.com/javascript/windows.php
If you open these in a VB Webbrowser, IE will popup with the new window, rather than your own webbrowser. There are no events that I can see to handle/prevent this and successfully gather the URL to open in my own browser.
I would appreciate any guidance on this as I am at a loss at the moment.
Many thanks!
Re: Webviewer and Javascript
Anyone have any suggestions on this please?