context.Parent.Parent.Close(); on client side

context.Parent.Parent.Close(); on client side

Hi,
would it work on client side context.Parent.Parent.Close();? When I trying to use that in Web Client Starter, client freezes.

So if it work, what I need to do before using this statement?

This is a migrated post! Originally posted on 20.04.2022 by user Oleksandr. Please be aware that information can be outdated.