The current assignation to a variable, in that context, is not static. So, something in memory is affected once the URL of that transactional frame is changed. So, I had to put a fonction in the form directly and simply have the transactional frame call that function so that function itself, which sits on the form, will never loose its reference to the object onclick assignation.