0
Hello. I would like to know a code to display a form as a popup when the user is closing the page. That is, that moment when it takes the cursor up the browser. Because the page was made by the RD tool.
Form in question: https://forms.rdstation.com.br/formulario-071734d1611046a89c8d
Form code:
<div id="formulario-071734d1611046a89c8d"></div>
<script type="text/javascript" src="https://d335luupugsy2.cloudfront.net/js/rdstation-forms/stable/rdstation-forms.min.js"></script>
<script type="text/javascript">
new RDStationForms('formulario-071734d1611046a89c8d-html', 'UA-11653131074-1').createForm();
</script>
I appreciate anyone who can help.
Thanks Valdeir. I answered below because I could not format properly.
– Maicon
@Maicon updated my reply. I added an example with the form.
– Valdeir Psr
Great @Valdeir. Look how it turned out.. http://materiais.financiatudo.com.br/teste. Only on my page the popup does not appear as an overlay with close button. You can help me with that?
– Maicon
@Maicon edited my reply. I added the
position
in the CSS and changedblock
forflex
by taking the cursor off the page.– Valdeir Psr