I have a doGet function in my google apps script (attached to a google doc) which is published as a web app and I want the user to be redirected to another web
doGet
Since your html is loaded in a inner iframe, You should use
window.top.location = url
to load in the top frame.