How to close full-screen menu after clicking anchor links?

You’re amazing!!! It worked, thank you so much.

For the IE support, what do you mean by classic loop?