Lightbox form does not popup on Firefox or Interent Explorer browser.

  • Profile Image
    atlasworldusa1
    Asked on October 31, 2014 at 08:18 PM

    I placed the following code at the top of my source code, but it only works in chrome. Please help!

     

    <script src="//max.jotfor.ms/static/feedback2.js?3.2.4207" type="text/javascript">

    var JFL_43028110884147 = new JotformFeedback({

    formId:'43028110884147',

    base:'http://jotform.us/',

    windowTitle:'$5 0ff!',

    background:'#FFA500',

    fontColor:'#FFFFFF',

    type:false,

    height:300,

    width:300,

    });

    </script>

    <a id="lightboxdelay" class="lightbox-43028110884147" style="cursor:pointer;color:blue;text-decoration:underline;display:none;">$5 0ff!</a>

     

    <script language="JavaScript">

    var delayseconds = 5;

        function pause() {

        myTimer = setTimeout('whatToDo()', delayseconds * 1000)

        }

       function whatToDo() {

    document.getElementById('lightboxdelay').click();

        }

    window.onload = pause;

    </script>

  • Profile Image
    jonathan
    Answered on November 01, 2014 at 04:39 AM

    Hi,

    I was able to reproduced the problem on Firefox and IE browser. But it works on Chrome browser.

    I checked the source code of your website, and I noted an erroneous placement of the lighbox code on the web page.

     

     

    the lightbox script code was unnecessarily placed outside the HTML tag of the web page.

    Please try positioning the code within the HTML, between the <head> tag to be specific.

    After correcting this, check again.

    Inform us if issue is not resolved.

    Thanks.