hi i want to alter this code to use anything but not document.write() because its not accepted on many browsers but iam not expert with js so what can i do to make this code work with anything except document.write() here is the code :
(function() {
// write the form
document.write("<link href='//fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>n<link rel="stylesheet" media="all" href="https://kajabi-app-assets.kajabi-cdn.com/assets/form_embed-70ab594381937fc46cadbbaab29c12b724dc077086662f2bbd495c08e46bb08d.css" />n<script src="https://kajabi-app-assets.kajabi-cdn.com/assets/form_embed-fd7a5360fe56f0a332f934492d89f18c2202d65871804504adca6fd4b6e78ceb.js"></script>nn<div id="kajabi-form" class="kajabi-form--inline">n <form data-parsley-validate="true" data-kjb-disable-on-submit="true" action="https://courses.nooor.me/forms/2148061262/form_submissions" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="authenticity_token" value="6DILpEdVQHFVJ0kV0u1hpzvxfzOZr3jElsbnhd7RHMsl6oWuWuppgglToe3+bNy4fD/GXE+L5Wt3JC/rO0IvTA==" />n <style id="form-embed-style" type="text/css">nn </style>nnn<div class="kajabi-form__content">n <div class="kajabi-form__title">JOIN THE NEWSLETTER</div>n <div class="kajabi-form__subtitle">n <p style="text-align: center;">Subscribe to get our latest content by email.</p>n </div>n <fieldset>n <div class="text-field kajabi-form__form-item"><input type="text" name="form_submission[name]" id="form_submission_name" value="" required="required" placeholder="Name" /></div>n <div class="email-field kajabi-form__form-item"><input required="required" placeholder="Email" data-parsley-remote="true" data-parsley-remote-validator="kjb_email_validator" type="email" name="form_submission[email]" id="form_submission_email" /></div>n <div class="phone-field kajabi-form__form-item"><input placeholder="WhatsApp Number" type="tel" name="form_submission[phone_number]" id="form_submission_phone_number" /></div>n <button class="kajabi-form__btn kajabi-form__btn--block-mobile" type="submit">Subscribe</button>n </fieldset>n</div>nn</form></div>n");
})();
i want to add an embedded form but they use doucment.write and its not working on the site i try to
embed to i tried console.log and it didn’t work and i tried innerhtml but i dont think i could write the syntax right and i don’t know what to do