After reading your last comment, it sounds like you want the entire page to redirect, not just the iframe. So, you can force the parent window to change by replacing
window.location = "//google.com"
with
window.top.location = "//google.com"
Using top
tells JavaScript to execute this on the parent. This works in JSFiddle, so it should work on your site as well.