Closed deepaksm1 closed 8 years ago
HyperlinkButton TargetName = _Blank not working in IE11. Page should open in new window if target is _Blank.
<HyperlinkButton Content="Download" Foreground="Teal" NavigateUri="http://www.google.com" TargetName="_Blank" />
I created new fayde application and just added above code in default.fap. But link is not opening in new window.
In fayde to open link in new window below code is used:
function launchDummyLink(target, navigateUri) { dummyLink = dummyLink || document.createElement('a'); dummyLink.href = navigateUri; dummyLink.target = target; dummyLink.click(); }
You are actually only creating the element, without adding it to the DOM. And trying to fire click event which doesn't support in IE.
See below URL for reference: http://stackoverflow.com/questions/24953662/click-event-not-firing-in-ie11 http://stackoverflow.com/questions/27860719/click-not-being-invoked-on-link-element
Please check in IE11
Duplicate of #206 Please refrain from opening the same issue. Comment on existing issue.
HyperlinkButton TargetName = _Blank not working in IE11. Page should open in new window if target is _Blank.
I created new fayde application and just added above code in default.fap. But link is not opening in new window.
In fayde to open link in new window below code is used:
You are actually only creating the element, without adding it to the DOM. And trying to fire click event which doesn't support in IE.
See below URL for reference: http://stackoverflow.com/questions/24953662/click-event-not-firing-in-ie11 http://stackoverflow.com/questions/27860719/click-not-being-invoked-on-link-element