Hi there,
I've got a WebDataMenu which is used to open a new window when clicking on a menu item. In firefox, when I click the link, the window opens fine and the focus is correct - on the new window. In IE, however, when I click the link, the new window opens up, but focus is immediately removed from the new window and given to the opening window. I've attempted to put in a window.focus() call at the end of my click handler, but it looks as though the focus is being stolen after the click handler has finished executing. Is there a way of ensuring the newly opened window retains the focus for IE?
Thanks!
The location of the window to open is dynamic, so I'm using a call to window.open instead of specifying a url with target _blank.
Hello kslone,
I tried to reproduce the issue with DataMenuItem with NavigateUrl ( Target="_blank") in order to open new window.
<ig:WebDataMenu ID="WebDataMenu1" runat="server">
<Items>
<ig:DataMenuItem Text="Root Item">
<ig:DataMenuItem Text="Google" NavigateUrl="http://google.com" Target="_blank">
</ig:DataMenuItem>
<ig:DataMenuItem Text="Infragistics" NavigateUrl="http://infragistics.com" Target="_blank">
</Items>
</ig:WebDataMenu>
I was not able to encounter the issue with InternetExplorer.
Do you another approach in order to achieve this?
Let me know if you need further assistance.