Javascript in view


I might sound like a noobie but this is what I’ve used in one of the projects…

  function post_form()


  <img src="/images/wait.gif?1200420741" onload="post_form()" border="0"> <br>

  Redirecting you to the payment gateway...

I hope it helps :slight_smile:

U can do like this either

in the layout

function your_unload_function() { //alert(' '); } function your_load_function() { //alert(' '); }