# Url link to a file

**URL:** https://forum.kirupa.com/t/url-link-to-a-file/298453
**Category:** Uncategorized
**Created:** [October 19, 2009, 1:22pm UTC](https://forum.kirupa.com/t/url-link-to-a-file/298453 "2009-10-19T13:22:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)
#### Post date: [October 19, 2009, 1:22pm UTC](https://forum.kirupa.com/t/url-link-to-a-file/298453/1 "2009-10-19T13:22:08Z")

</div>

var url:String = “References.pdf”;  
var request:URLRequest = new URLRequest(url);  
navigateToURL(request, ‘\_blank’);

that’s what i have currently.

It worked fine in osx on safari. It opened the pdf in the browser.

but on a pc with firefox I dont think it has the same in browser pdf capabilities,

How do I just initiate a download prompt or something?
