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
Junaid PKhaderJunaid PKhader 

Reload Visualforce page on value change in Lightning Component inside


I am having a visualforce page inside which I am using a lightning component. Its shown below.
$Lightning.use("c:VFPage", function() {
                $Lightning.createComponent(
                    "c:EditAttachment",
                    {
                        attachmentId: attId,
                        attachmentName: attName,
                        attachmentDesc: attDesc,
                        isPrivate: isPrivate
                    },
                    "LightningContainer",
                    function(cmp) {
                    }
                );
            });

Inside the lightning component, I am performing an edit on Attachment record and saving it.
I want to reload the whole visualforce page after the saving of the attachment is successful. Is there any way to do this?
Any help is appreciated.
Best Answer chosen by Junaid PKhader
Junaid PKhaderJunaid PKhader
I found the answer. Using  
location.reload();

on the Success callback of the Attachment Save method would refresh the page.