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
Anna Lu 6Anna Lu 6 

how to use sforce.one for window.name ?

As title.
I am planning to switch from classic to Lightning. In the report, it says in Lightning, window is no longer supported, and the suggestion is to use sforce.one to navigate around. 
However, I have a variable like:
var name = window.name;
I cannot find proper document to use sforce.one to get current window's name so that my var name can still be used. 

Any suggestion? 
Thanks!
 
Anna Lu 6Anna Lu 6
Oh after reading several documents, I think this is not a simple issue that can be handle only starring at this one line code. 
A reference: https://trailhead.salesforce.com/modules/lex_javascript_button_migration/units/javascript_button_alternatives