Tuesday, 11 November 2014

Javascript show file content

<head>
    <script language="javascript">
        function ShowMyFile(path) {
           var sd = window.open(path);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <a href="#" onclick="ShowMyFile('Files/Hello.pdf'); return false;">Show file</a>
    </div>
    </form>
</body>
</html>

No comments:

Post a Comment