blob: 648acb1669a9aa867de424dacdea80beda8d7d4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!doctype html>
<html>
<head><title>Test-title</title></head>
<script>
window.name = 'test-main-frame'
onload = (e) => {
const frames = window.frames;
for (let i = 0; i < frames.length; i++) {
frames[i].name = 'test-subframe' + i;
}
};
</script>
<body>
<iframe name="iframe0-300x200" width="300" height="200"></iframe>
<iframe name="iframe1-350x250" width="350" height="250"></iframe>
</body>
</html>
|