0
我尝试如下,但它不工作如何在img标签的onerror属性上发送http请求?
<body>
<img src=a onerror="document.write('<img src=\"http://www.somdomain.com:8088/alert?type=teSt&msg=www\">')">
</body>
我尝试如下,但它不工作如何在img标签的onerror属性上发送http请求?
<body>
<img src=a onerror="document.write('<img src=\"http://www.somdomain.com:8088/alert?type=teSt&msg=www\">')">
</body>
\
不是HTML转义字符。
要将"
字符放入以"
字符分隔的属性值中,必须将其表示为实体。例如"
。
请记住,交叉原点限制可防止从不同来源的图像触发加载和错误事件。