Double press the home button to open the task bar at the bottom of the screen, touch and hold any app in this bar until the minus signs appear at the top left of the app icons. Touch the minus sign on the Safari App so that it disappears from the task bar. Now press the home button to get your main homepage back, open Safari and all should (hopefully) be good.
The Archangel