Forum Discussion

ChrisSwirtz2's avatar
ChrisSwirtz2
Qrew Cadet
6 years ago

Defaulting report link to open a new window instead of just a new tab

I have the setting selected on the field settings of a report link in question, however it just opens a new tab in the same browser versus a new browser window over top of the origin browser. Is there a way within QuickBase to make this happen or is that more of a browser settings thing?

------------------------------
Chris Swirtz
------------------------------
  • Chris,

    1. There is no native functionality I am aware of for this.

    2. Modern browsers actually control this mostly, this cannot be done via html with target="_blank", which only opens a new tab/window. I do know custom javascript could be written and injected to open a brand new browser session/window.



    ------------------------------
    Justin Lapier
    Synctivate Inc.
    Synctivate Website
    ------------------------------
    • ChrisSwirtz2's avatar
      ChrisSwirtz2
      Qrew Cadet
      Thanks Justin, that is kind of what I figured. Do you happen to know what that Java script might looking like to make this work? I have not yet learned that craft.​

      ------------------------------
      Chris Swirtz
      ------------------------------
      • RyanStanford1's avatar
        RyanStanford1
        Qrew Captain
        Quick GoogleFoo here... if you add features/parameters to a window.open() JavaScript call, it forces it to open as a new window:

        var strWindowFeatures = "height=0,width=0,scrollbars=yes,status=yes";
        var URL = "https://www.google.com";
        var win = window.open(URL, "_blank", strWindowFeatures);

        You can find more information regarding WindowFeatures here: https://developer.mozilla.org/en-US/docs/Web/API/Window/open#Window_features

        ------------------------------
        Ryan Stanford
        ------------------------------