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
ncix007ncix007 

About URL reload in s-control

    hi everyone,

I have s-control page As
 Example  >>(http://aspen.salesforce.com:7921/servlet/servlet.Integration?ic=1&scontrolCaching=1&lid=00bx0000000k1Gg&eid=a00x0000000448j)

when i clicked "save" button it will save the value should redirect to this page
Example >> (http://aspen.salesforce.com:7921/a00x0000000448j)

i have written code as
window.location="http://aspen.salesforce.com:7921/a00x0000000448j";
 in my s-control And happily :) page redirected to provided URL but :( it is displaying inside the frame
i.e:As shown in figure

Please how can i show it :)
cheenathcheenath
To display your page on the "top" frame, try this on page load:

if (top !== window) {
  top.location = window.location;
  return;
}