how to check if webview is fully loaded

Is it possible to see if a webview is completely loaded before executing some javascript?

Thank you,
Todd