<!DOCTYPE html> <!-- target: hello.txt --> <html> <head> <meta charset="utf-8"> <title>Javascript link</title> </head> <body> <a href="javascript:window.location.href='/data/hello.txt'" id="link">Follow me via JS!</a> </body> </html>