I am new to using Dart. I was wonder how do I create a pop-up window based on an event? i know how to create the event but not sure how to create the pop-up window.
void main()
{
List<Element> radioButtons = queryAll(".requestType");
Iterator i = radioButtons.iterator();
while(i.hasNext)
{
var item = i.next();
item.on.click.add(addRequestTypeEvent);
}
}
void addRequestTypeEvent(Event event) {
<POPUP WINDOW>
}
Update 01/17/2013: I figured out how to do it.
window.open("http://www.yahoo.com", "yahoo", "status = 1, height = 300, width = 300, resizable = 0");
Just use Window.open:
You can read more on what
optionsyou can give as third parameter on MDN.One more thing, you can simplify your code. The following does the same :