How Can I make a Button? URGENT PLEASE

How can I make a button so when you click on it, a PDF file downloads into another page?
Right now, I have created a button and have attached the following code

on (press) {
getURL(“My File.pdf”, “_blank”);
}