Search code examples
extjshyperlinkwindow

how to open a hyperlink in new window


I am using ExtJS 2.3.0

I have a link as follows-

{ id: 'Id1', type: 'int', header: "Click me", navigateUrl: "www.google.com", width: 60 }

clicking this opens the page in same window. I want to open this in new window. I know I can use window.open but how can I write it inside navigateURL

Please help


Solution

  • I got it working by adding "target": "_blank"

    { id: 'Id1', type: 'int', header: "Click me", navigateUrl: "www.google.com", "target": "_blank", width: 60 }