I want to have the widget close when window.onload

window.onload = launchwebpage;

function launchwebpage()
{

....
widget.openURL(...)
window.close() <-- have no effect to the widget itself

}

I am using N97 has anyone come across this problem?

Thanks

Stephen