When a web page i have loaded in to my WebBrowser1 opens a link, it opens it outside the scope of the app so it creates a new session it seems and no cookie or login info is remembered. The user have to relog in the new popup window.
In my WebBrowser1 i load a page that have a link that calls a java script function with this call
<a href="#" onclick="javascript:stats('155916','0');">stats</a>
the java script function is this
// <![CDATA[
function stats(portRowId, action)
{
var w, wname = 'waiting';
w = window.open('/router.do?method=stats&action=' + action + '&portId=' + portRowId,wname);
}
// ]]>
is it possible to intersept this call and make it open the /router.do?method=stats&action= link inside the scope of the webbrowser1 so the user don't have to re-log in the new window?
i dont have access too the source of the web page so i cant change the "<a ref"
or the java script function