Hi

I would like to load a document in Javascript.

I tried something like that in xpcshell:
var w = Components.classes['@mozilla.org/webshell;1'].createInstance(Components.interfaces.nsIWebNavigation);
w.loadURI('www.mozilla.org',Components.interfaces.nsIWebNavigation.LOAD_FLAGS_NONE,null,null,null);


But that gave me a segmentation fault.

What's wrong ?

_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to