Onload event inside the url loaded via Webview

Back to How-to Discussions

Hello,

Please i have a page that contains the following

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Page title</title>
    </head>
    <body onload="document.form.submit();">
        <div style="padding: 20px;">
            <h1 style="text-align:center;"><em>Please wait while we redirect you to the payment page...</em></h5>
        </div>
        <form name="form" action=" https://excample.com" method="post">
            <input type="hidden" name="response_url" value="<?php echo $formData['ReturnUrl']; ?>" />
            <input type="hidden" name="hash" value="<?php echo $formData['hash']; ?>" />
        </form>
    </body>
</html>

When loaded through Webview, the onload event is not called. Please how can i make this work or what's the best approach to this?

Thanks.

Post Stats
  • 1
    replies
  • 105
    views
  • 2
    users