when i use webbrowser in my project, and click on a link, it opens IE tho, my default browser is firefox....
how can i make links to open in firefox rather than in IE ??
Code:
import SWFKit.*;
import SWFKit.FlashPlayer.*;
import WebBrowser;
// Create the web browser control
var ax = Global.createControl("Shell.Explorer.2", 0, 0, 200, 200);
// Fill the web browser control in the entire client area of the
// main window
var win = Global.getMainWnd();
function klick() {
Global.trace("ax");
}
ax.setEventHandler("onClick", klick);
ax.window.move(1, 23, 500, 216);
function onSize(type, width, height)
{
ax.win.move(1, 23, 500, 216);
}
win.setEventHandler("onSize", onSize);
var wb = WebBrowser.fromID(ax.activex);
// handle event of the ActiveX control
function NavigateComplete2(control, url)
{
_root.strace(url);
}
wb.setEventHandler("NavigateComplete2", NavigateComplete2);
wb.addEventListener("click", hamtaSidan);
// Browse web site
wb.Navigate2("http://mysite/links.php");
function onClick() {
Global.trace("HIDE");
ax.window.hide();
_root.holder.Meny._visible = true;
hide_WB._visible = false;
info_WB._visible = false;
ut_WB._visible = false;
}
hide_WB._visible = true;
_root.holder.Meny._visible = false;
hide_WB.addEventListener("click", onClick);