tags:

views:

418

answers:

0

I am using SP2010 and need to run some javascript code to update an iframe when the page loads. Due to this, I have used the following method _spBodyOnLoadFunctionNames.push("myfunction") to execute the javascript function. The problem is that the page loads (and the original html/css elements are loaded), then the page reloads with the newly updated javascript code. Any ideas on how to eliminate the delay? Thanks.