I quite often open XML documents via script using window.open(). These XML documents are then displayed as HTML using a reference an external XSL Transform using the xml-stylesheet processing instruction as so:
< xml version="1.0" encoding="utf-8" >
< xml-stylesheet type="text/xsl" href="transform.xsl" >
Normally, I like to include an HTML button (generated by the XSLT) that calls window.close() onclick. This works fine in IE6 but in IE7, users are presented with "The webpage you are viewing is trying to close the tab. Do you want to close this tab ".
Does anybody know why this might be happening Does IE7 consider the XSLT reference insecure or something Does IE7 some how forget that the window was opened via script in this case
Internet Explorer Development5