1
2
3
4
5
6
7
8
9
10
11
content / test / data / download / iframe-host.html [blame]
<!DOCTYPE html>
<html>
<body>
<iframe id="frame"></iframe>
<script>
var iframeElement = document.querySelector('#frame');
url = window.location.href;
iframeElement.src = url.substr(url.indexOf('=') + 1);
</script>
</body>
</html>