Give a tip

convert a crx extension


Recommended Posts

Sorry for a late reply, but have you tried reading the SDK?var rt = window.external.mxGetRuntime()

var browser = rt.create("mx.browser")

var returnedvalue = browser.executeScript("mytools(\""+tool+"\")")Because executeScript() function is basically an eval you'll have to dynamically insert the strings/objects for arguments that gets passed to the mytools() function in the page (I assumed tool variable was a string for this example). The returnedvalue variable will contain the function's return value

Tip   Give
Link to comment
Share on other sites