openURL Example - cytoscape/cytoscape-web GitHub Wiki

Format of response for openURL results

[
  {
    "action": "openURL",
    "data": {
              "url": string, // URL to open
              "target": string  // Denotes where to open URL, if empty string, blank or null open in a new tab
                                 // if set to a name, open as an iframe on right side of Cytoscape WEB --NOT IMPLEMENTED YET
            }
  }
]

Example:

[
  {
    "action": "openURL",
    "data": {
              "url": "https://www.cytoscape.org", 
              "target": null
            }
  }
]