Hey everyone,
I'm trying to use this code with Arcgis JS 4.18, but according to ESRI support this code works only for 3.x versions.
https://support.esri.com/en/technical-article/000014528
Code:
var link = domConstruct.create("a",{
"class": "action",
"id": "statsLink",
"innerHTML": "More Information", //the text representing the link
"href": "javascript: void(0);"
}, query(".actionList",map.infoWindow.domNode)[0]);
on(link, "click", [function name]);
function cp(evt){
window.open("http://url"); //set the url to be displayed
}
as seen in these two examples:
https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=exp_history
https://developers.ardomNodejavascript/3/sandbox/sandbox.html?sample=gp_popuplink