not sure if there's something wrong with this code but I was able to make it work on pure HTML Page but not when using the javascript(javascript:openDocument) on the PHP HTML Page.
<a id='edit' href='javascript:openDocument('asd.docx')' name='Btn1'>Edit</a>
href='javascript:openDocument('asd.docx')'==>href='javascript:openDocument(\'asd.docx\')'. Notice\'escaping