This hides the page and wipes your answers, but it can't erase your browser history. Use a private tab, or clear your history after.
On iPhone, for a private tab: open Safari, tap the tabs button (two overlapping squares), then tap Private. To clear history: go to Settings, then Safari (or Apps, then Safari), then Clear History and Website Data.
On a keyboard, you can also press Escape to leave quickly.