iPad malware warning
I think @toni is just talking about a page that tries to stop you from navigating away.

Before you do anything else, double-tap the iPad's home button &amp; close Safari.

You can then clear out all your open tabs:


In iOS 8 and later, Settings > Safari > Clear History and Website Data
In iOS 6 and earlier, Settings > Safari > Clear Cookies and Data


If you want to preserve your tabs &amp; history:


Go to Settings > Safari > Advanced
Turn off JavaScript.
Open Safari &amp; close the problem tab.
Turn JavaScript back on.