Urgent Help needed about navigation inside i frame using target self

62 views
Skip to first unread message

Adil khan

unread,
Sep 24, 2021, 2:24:52 AM9/24/21
to Google Apps Script Community
function getUrl(qs)
  {
    google.script.run
        .withSuccessHandler(loadNewPage)
        .getScriptURL(qs);
  }
    function loadNewPage(url){
    //window.location.href = url;
    window.open(url,"_self");
  }

I use this way to navigate through pages but third page returns blank page.

Clark Lind

unread,
Sep 24, 2021, 12:25:22 PM9/24/21
to Google Apps Script Community
window.open() opens a new window.
Try window.location.assign(url)  instead.
Reply all
Reply to author
Forward
0 new messages