cancel
Showing results for 
Search instead for 
Did you mean: 

JavaScript URL rewritting and screen blinking

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Not required.

Former Member
0 Kudos

Hi Vijay,

It sholun't happen in javascript.U have put 3 conditions same as per the code u send.Check that once.

Any u can stop blinking in javascript.Refer this.

http://www.w3.org/TR/WCAG20-TECHS/SCR22.html

Regards,

Srikanth