You can try the following code (refer to http://***/zh-CN/article/2422/default.aspx)
I am not sure it can not be blocked by every blocker, but I have tested many of them, it really works.
< html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<>
<>
<>Untitled Page</>
<>
function getAjaxXml()
{
var xml = new ActiveXObject("Microsoft.XMLHTTP");
var str="flag=888"; xml.open("GET","showXML.aspx?"+str,false); xml.send(); return xml.responseText; } function imgclick() { var value=getAjaxXml(); window.open ("http://www.asp.net/?xml="+value ); } </> </> <> <> <> </> </> </> </> </> < html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <> <> <>Untitled Page</> </> <> <> <> </> </> </> </>
System; System.Collections; System.Configuration; System.Data; System.Linq; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.HtmlControls; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Xml.Linq; partial showXML : System.Web.UI.Page { Page_Load( sender, EventArgs e) { Response.Write( + Request[]); } }
Edit:
the blod line with yellow back ground cause the program is not supported by Firefox
That is because Firefox is not support Microsoft.XMLHTTP, you can use the following code to create xml variable:
var xml;
{
xml =new ActiveXObject("Msxml2.XMLHTTP")
} catch(e) {
try
{
xml=new ActiveXObject("Microsoft.XMLHTTP");
} catch(oc) {
xml=null;
}
Thanks.