injectGoogleReCaptchaScript

injectGoogleReCaptchaScript

Injects the Google reCAPTCHA script into the document

injectGoogleReCaptchaScript({
  badge,
  hl,
  host,
  isEnterprise,
  render,
  onload
});

Parameters

The function accepts a configuration object with the following properties:

NameTypeRequiredDefaultDescription
badge'bottomright' | 'bottomleft' | 'inline'Yes-Badge position
hlstringNo-Language code
host'google.com' | 'recaptcha.net'No'google.com'Script host
isEnterprisebooleanNofalseUse enterprise version
renderstringYes-Rendering mode for reCAPTCHA
onload() => voidYes-Callback when script loads

Last updated on

On this page