:: Forum >>

how to open new window by link

I want open new window by link , how can i do?
qian xian jie
Tuesday, April 25, 2006
You can set 'target' attribute in the link template -

var obj = new AW.UI.Grid;
    obj.setCellData("cell");
    obj.setHeaderText("header");

    obj.setColumnCount(10);
    obj.setRowCount(10);

    var link = new AW.Templates.Link;
    link.setAttribute("target", "_new");

    obj.setCellTemplate(link);
    obj.setCellLink("http://www.google.com");

    document.write(obj);
Alex (ActiveWidgets)
Tuesday, April 25, 2006

This topic is archived.


Back to support forum

Forum search