Call js function after click next page

Hi All,

I want call a js function after click next button . It mean : browse will go to next page and the js function which i call will effect . How can i do that ?

Thanks in advance

HI Andrew , I followed your

HI Andrew ,

I followed your way and i can do that.

Thanks for your comment

you can call your js or php

you can call your js or php function from list template that your form is based on:

        <td class="nav_b">
            <a href='javascript:void(0);' onclick="js: CallFunction('{$name}.NextPage()'); js: alert('I am ABC');"><img src="../images/next.gif" BORDER=0 onmouseover="window.status='Next'; return true;"  title="Next"></a>
        </td>
 

I used js: alert('I am ABC')" as an example.

thanks,

Andrew