JS in preload


#1

In webview, I preload a js file which contains a simple

function callMe() {
alert(‘Hi…’);
}

When I’m trying to call this function in my html page (which is “managed” by a webview") I get

page.html: Uncaught ReferenceError: callMe is not defined

Could you help me please ?

Thanks