Last post Sep 05, 2007 03:14 PM by cecook05
Aug 31, 2007 11:35 AM|cecook05|LINK
Sep 01, 2007 03:39 AM|Russ Helfand|LINK
The target attribute is not in the XHTML 1.1 spec from the W3. Since the adapter strive for the strictest compliance, the choce was made (by me) to avoid that attribute in favor of the solution using onclick and onkeypress that you observed. Are you certain
that popup blockers are ready twarting this? I use this solution all the time and it seems to work wonderfully. Maybe I'm missing something. Do you have a recipe that I could follow to reproduce an actual problem?
Sep 05, 2007 03:14 PM|cecook05|LINK
When I include target="_blank" in the MenuItem, the output includes onclick="window.open(this.href,'_blank',")
My client was complaining that some of her customers could not open the link. I discovered that in IE7, if your
Pop-Up Blocker settings were set to High (block all pop-ups) then this was treated as a pop-up and blocked. I suspect that they had modified their filter settings to high. When set to Med or Low, this is not a problem.
<asp:MenuItem NavigateUrl="http://www.all-waysrealestate.com/" Target="_blank" Text="Real Estate" />
<a href="http://www.all-waysrealestate.com/" class="AspNet-Menu-Link" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">