Skip to main content
better link references
Source Link
psygo
  • 7.8k
  • 8
  • 63
  • 112

One simple way is to just create a button and use dart:html's window.open() method:

import 'dart:html' as html;

// ...

html.window.open('https://stackoverflow.com/questions/ask', 'new tab');

The name parameter — which I left as 'new tab' — refers to the new tab's window name, about which you can learn more from MDN's documentation.

One simple way is to just create a button and use dart:html's window.open() method:

import 'dart:html' as html;

// ...

html.window.open('https://stackoverflow.com/questions/ask', 'new tab');

The name parameter — which I left as 'new tab' — refers to the new tab's window name, about which you can learn more from MDN's documentation.

One simple way is to just create a button and use dart:html's window.open() method:

import 'dart:html' as html;

// ...

html.window.open('https://stackoverflow.com/questions/ask', 'new tab');

The name parameter — which I left as 'new tab' — refers to the new tab's window name, about which you can learn more from MDN's documentation.

added links to the documentation
Source Link
psygo
  • 7.8k
  • 8
  • 63
  • 112

One simple way is to just create a button and use dart:html's window.open() function/methodwindow.open() method:

import 'dart:html';html' as html;

// ...

html.window.open('https://stackoverflow.com/questions/ask', '''new tab');

The name parameter — which I left as 'new tab' — refers to the new tab's window name, about which you can learn more from MDN's documentation.

One simple way is to just create a button and use dart:html window.open() function/method:

import 'dart:html';

// ...

html.window.open('https://stackoverflow.com/questions/ask', '');

One simple way is to just create a button and use dart:html's window.open() method:

import 'dart:html' as html;

// ...

html.window.open('https://stackoverflow.com/questions/ask', 'new tab');

The name parameter — which I left as 'new tab' — refers to the new tab's window name, about which you can learn more from MDN's documentation.

Source Link
psygo
  • 7.8k
  • 8
  • 63
  • 112

One simple way is to just create a button and use dart:html window.open() function/method:

import 'dart:html';

// ...

html.window.open('https://stackoverflow.com/questions/ask', '');