title: Create HTML Link to Call Button Click Event on Different Page
body: <p>Per the code below, I'm able to create a Link with parameters that will navigate to my desired target page: </p>
  
  <pre><code>&lt;style&gt;
      .fancy-link{
          color: #FFFFFF;  
          text-decoration: none;  
          transition: all 0.3s linear;  
          -webkit-transition: all 0.3s linear;  
          -moz-transition: all 0.3s linear;
          border-radius: 4px; 
          border: 1px solid black; 
          background: #0080FF;  
          padding-top: 0px;  
          padding-left: 5px; 
          padding-right: 5px; 
          padding-bottom: 0px; 
          width: 100px;  
          height: 10px; 
          font-size: 15px; 
          font-weight: bold;} 
  
    .fancy-link:hover{ 
          color: #F44336;   
          padding-left: 10px;}
  &lt;/style&gt;
  
  &lt;html&gt;
  &lt;a class="fancy-link" name="View" id="View"
    href="'||'https://XXXXXX-sb1.app.website.com/app/common/custom/custrecordentry.nl?
    rectype=142&amp;id='||{internalid}||'"target="_blank"&gt;Check-In&lt;/a&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>While this is useful, my intended goal is for this link to actually call the following button click event/element that lives @ at the desired url (see href above), without actually navigating to that page. Is this possible? If so, some code examples would be very helpful.   </p>
  
  <pre><code> .&lt;input type="button" style="" class="rndbuttoninpt bntBgT"value="Check-In" id="custpageworkflow157" name="custpageworkflow157"onclick="try{
      if (!!window) {
          var origScriptIdForLogging = window.NLScriptIdForLogging;
          var origDeploymentIdForLogging = window.NLDeploymentIdForLogging;
          window.NLScriptIdForLogging ='CUSTOMSCRIPT_STICK_USER_PREFERENCE';
          window.NLDeploymentIdForLogging= 'CUSTOMDEPLOY_STICK_USER_PREFERENCE';
      }
      try{
          NS.Workflow.buttonClick('custpageworkflow157');
      }
      catch(e){
          document.location = addParamToURL(addParamToURL(addParamToURL(document.location.href,'workflowbutton','157'),'workflowbuttoninstanceid','84083'),'workflowbuttonobsoletehandling','T');
      }
  }
  finally{
      if (!!window) {
          window.NLScriptIdForLogging = origScriptIdForLogging;
          window.NLDeploymentIdForLogging = origDeploymentIdForLogging;
      }
  }
  ;
  return false;
  "onmousedown="this.setAttribute('_mousedown','T');
  setButtonDown(true, false, this);
  " onmouseup="this.setAttribute('_mousedown','F');
  setButtonDown(false, false, this);
  " onmouseout="if(this.getAttribute('_mousedown')=='T') setButtonDown(false,false, this);
  " onmouseover="if(this.getAttribute('_mousedown')=='T') setButtonDown(true, false, this);
  " _mousedown="F"&gt;
  </code></pre>