Menu

[r11]: / trunk / SWFInvestigator / src / utils / xssFuzzer / viewerWrapper.html  Maximize  Restore  History

Download this file

50 lines (38 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<html lang="en">
<!--
/****************************************************************************
* ADOBE SYSTEMS INCORPORATED
* Copyright 2012 Adobe Systems Incorporated and it’s licensors
* All Rights Reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute this file
* in accordance with the terms of the license agreement accompanying it.
* ****************************************************************************/
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Viewer Wrapper</title>
<script type="text/javascript">
//Create postMessage listener
var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
var eventRef = window[eventMethod];
var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message";
//Listen to message from child window
eventRef(messageEvent,function(e) {var div = document.getElementById("viewer");div.innerHTML = e.data; } );
</script>
<style>
body { margin: 0px; overflow:hidden }
</style>
</head>
<body scroll="no">
<div id="viewer"></div>
<script language="JavaScript" type="text/javascript">
function viewer_DoFScommand(command, args) {
parent.postMessage("ping","*");
}
function sendPingBack() {
parent.postMessage("ping","*");
}
</script>
</body>
</html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.