JavaScript Widget

Installing the Widget

3min
the mailfloss widget allows you to verify emails in real time conveniently at the point of entry, most commonly on form inputs getting started you’ll have to get your mailfloss widget and your public key in order to do that, you need your mailfloss account once that is done, you’ll find your public key and embed code under the "apps & plugins" section of the mailfloss application how to install the installation is simple just copy and paste the code snippet below into your html file the only part you need to modify is the window\ mf settings object here, you can customize the widget settings and input your publickey be sure to include your publickey, as the widget won't function without it copy and paste this snippet into your html file \<script type="text/javascript"> let mailfloss = window\ mailfloss = window\ mailfloss || \[]; window\ mf settings = { "publickey" "\<your public key>" }; mailfloss push(mf settings), (function() { let first script = document getelementsbytagname('script')\[0]; let script = document createelement('script'); script type = "text/javascript", script async = !0, script src = "https //cdn mailfloss io/v1/index min js", first script parentnode insertbefore(script, first script) })(); \</script> things to take into consideration in order for the widget to work correctly, you must have an input with at least one attribute with a value of "email" on the page where the widget is installed