webview打开的html代码,是一个使用了iframe技术的google验证码demo
<html>
<head>
<title>reCAPTCHA demo: Explicit render for multiple widgets</title>
<script type="text/javascript">
var verifyCallback = function(response) {
alert(response);
};
var widgetId1;
var widgetId2;
var onloadCallback = function() {
// Renders the HTML element with id 'example1' as a reCAPTCHA widget.
// The id of the reCAPTCHA widget is assigned to 'widgetId1'.
widgetId1 = grecaptcha.render('example1', {
'sitekey' : '6LdmnCYqAAAAAAe48En8XHFW1NqVFnxir4qK5sO9',
'theme' : 'light'
});
widgetId2 = grecaptcha.render(document.getElementById('example2'), {
'sitekey' : '6LdmnCYqAAAAAAe48En8XHFW1NqVFnxir4qK5sO9',
});
grecaptcha.render('example3', {
'sitekey' : '6LdmnCYqAAAAAAe48En8XHFW1NqVFnxir4qK5sO9',
'callback' : verifyCallback,
'theme' : 'dark'
});
};
</script>
</head>
<body>
手机端效果
pc端效果