I am writing the following program:
***import os filepath=r'C:\TestData\openfolder.html' abc=open(filepath,'w') abc.writelines('<html><head></head><body>') abc.writelines('<a href="os.startfile(filepath)">First Link</a>\n') abc.writelines('</body></html>')***
What I want to do is if I click the First link in the browser, I have to open a folder with a path like "File path". os.startfile works fine for opening a folder, but I don't know how to implement this inside some link. Thanks.
source share