How to close the in-app browser?

I can’t seem to close the in-app browser without it automatically popping back up after I press done. I have messed around with the touch.state variables but I’m not sure that those work inside the browser.

By the way, I’m still learning the Codea basics, :wink:

Are you calling openUrl() in the draw() function? If so codea trys to open the page every 60th of a second so as soon as you close it it opens again

Oh, I see. Yes, I was calling it in the draw method @Coder.