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
dlattedlatte 

RedirectPage() stopped working after Winter '16. Any suggestions on how to fix and troubleshoot please.

The page 'cancel' button has an onclick redirectpage.
Now, when I click the cancel button nothing happens.

<apex:commandbutton id="cmdCancel" value="{!$Label.Button_Cancel}" onclick="javascript: RedirectPage();"/>  

From Chrome: Uncaught TypeError: Cannot read property 'focus' of undefined  

From Mozilla Firefox: Instance 'backToSuggestionsLnk_500e0000006P9rj-18ed8e4b6c5de6fb024519190e0bef26150816a7a90zf04126a57303ae4d' is uninitialized and type was undefined"
Best Answer chosen by dlatte
Gordon EngelGordon Engel
I don't see any similar cases or bugs in the Salesforce database.  Perhaps it is a page loading race condition.  I found this for a similar error:

http://stackoverflow.com/questions/23251036/uncaught-typeerror-cannot-read-property-focus-of-undefined