How to add javascript for plugin on the page

How to add javascript for plugin on the page

Hi, I am using a plugin called slidedeck on my wordpress page. The slidedeck is just a slider which moves slides horizontally as well as vertically on click event. I am using the same slider on multiple pages and want the slider to navigate to different slides on different pages. I have got the code that works to go to any slide using a button. However, I want it to be on page load instead of button. Working code: <a onclick="jQuery('.slidedeck').slidedeck().prev(); return false;" href="#">Click here to go to slide 2</a> You can check the slide deck on the following page and if u inspect elements using chrome or Firefox browser and add this code. It does work but when I try to add into page load it just doesn't work Www.dev.riacademy.org Any suggestions are highly appreciated Thanks, Muhammad