Skip to Content
0
Former Member
Jul 28, 2009 at 01:44 PM

JavaScript Screen blinking

16 Views

Hi Experts,

I am working with EP and JavaScripts. We are making changes through JavaScript in Portal.

I have to rewrite the URL's with new URL's by using JavaScript. I am using the following code-

if( parent.document.body.innerHTMLindexOf(URL)>0)

rewriteLinks(sourceURL,targetURL);

if( parent.document.body.innerHTMLindexOf(URL)>0)

rewriteLinks(sourceURL,targetURL);

f( parent.document.body.innerHTMLindexOf(URL)>0)

rewriteLinks(sourceURL,targetURL);

But, the problem is screen is blinking for 3 times to execute the above 3 if()conditions. I think, for every if() the screen is reloading.

How to stop reloading for every if() condition? Once all the if() conditions executed, then only reload the screen.

Regards,

Vijay.