function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SN SFSN SF 

Receiving unwanted Java script tags on VF page

Hi -

I have a VF page that has two tabs (tab1 and tab2) . We have used two VF components to build the page 

I receive below code at the bottom of the page
1. when I switch from tab1 to tab2 (below is the code I receive )
window.parent.SfdcApp.Visualforce.viewstate.ViewInstance.reload();
2. When I change pagination from selectlist  (below is the code I receive )  
 try{window.scrollTo(0,0);}finally{window.parent.SfdcApp.Visualforce.viewstate.ViewInstance.reload();}
3. When I click on any button (SAVE , SAVE & NEXT , SAVE & PREVIOUS) 
try{window.scrollTo(0,0);}finally{window.parent.SfdcApp.Visualforce.viewstate.ViewInstance.reload();}

It looks like everytime the page is loaded I get this code .I am not sure from where these tags are coming . can somone help me on this ?
Regards ,
SN
ShirishaShirisha (Salesforce Developers) 
Hi,

Greetings!

You can try by inspecting the code to see which component is being triggered when you are trying to switch between the Tabs on the VF page.

Also,use the lightning inspector which will help you to see the code as well.

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/inspector_use.htm

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri