# JS:link to a file

**URL:** <https://forum.kirupa.com/t/js-link-to-a-file/291646>\
**Category:** web dev\
**Created:** [July 2, 2009, 6:16pm UTC](https://forum.kirupa.com/t/js-link-to-a-file/291646 "2009-07-02T18:16:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rawnewdlz](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@rawnewdlz](https://forum.kirupa.com/u/rawnewdlz)\
**Post date:** [July 2, 2009, 6:16pm UTC](https://forum.kirupa.com/t/js-link-to-a-file/291646/1 "2009-07-02T18:16:21Z")

</div>

Hi,  
Any ideas on how to create a link to a file using a js script to work with jquery and thickbox.

example to open up a thickbox:  
\<a href=“testpage01.html?keepThis=true&TB\_iframe=true&height=650&width=580” title=“I’m a title!” class=“thickbox”\>Click Here\</a\>

I’d like to add something like… link=“file/blah.pdf” in the thickbox link so when it opens up there will be a link (to download the file) in the header included with the title.

Any suggestions would be greatly appreciated.
