JSFiddle - React, Tailwind, and code Playground
by PhilQ
CSS
#zorgfocuz_iframe {
width: 400px;
height: 250px;
border: 0px;
box-sizing: border-box;
}
JavaScript
var zf_iframe = document.createElement('iframe');
zf_iframe.id = 'zorgfocuz_iframe';
zf_iframe.name = 'zorgfocuz_iframe';
zf_iframe.style.width = '100%';
zf_iframe.style.height = '300px';
zf_iframe.seamless = true;
zf_iframe.style.margin = '0px';
var zf_form = document.createElement('form');
zf_form.method = 'POST';
zf_form.target = 'zorgfocuz_iframe';
zf_form.action = "https://www.zorgfocuz.nl/dashboard/";
var zf_token = document.createElement('input');
zf_token.type = 'hidden';
zf_token.name = 'gifudKQnyAmPRCpMdrOY'; // Klant token
zf_token.value = 'rfds736tKJlnbtETlOl7FC1mAjy7NuUivAl4yc9Y'; // Account token
zf_form.appendChild(zf_token);
document.body.appendChild(zf_form);
document.body.appendChild(zf_iframe);
zf_form.submit();