Onload event inside the url loaded via Webview


#1

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.


#2

Hello

Could you post a small reproduction of your issue? We are unable to do much without code to look at.