1 Reply Latest reply on Nov 4, 2006 7:28 AM by dempster

    text link auto click

    JohnGree Level 1
      Hi i want to be able to open a small popup window if a form is defined, can i change the onclick to something that auto clicks?

      <cfif isdefined('form.SMSSent')>
      <a href="sss.cfm" onclick="newWin(this.href,550,250,'no','no'); return false;"></a>
      </cfif>
        • 1. Re: text link auto click
          dempster Level 1
          WIth your CFIF, you could write a Javascript function using the onLoad event handler. This is placed in the BODY tag and executes when a document is loaded into the browser. However, many browsers are set up to block autoloading of pop-up windows.