Call a Javacript Function from a Button

hillk1
hillk1 Community Member Posts: 8
Thanks. The function is being called now... However, I'm having another issue with the function so I'm still getting an error.My actual function is as follows:function goNext() {   window.top.location.href='/onlinelearning/trnmnu.asp' + location.search + '&moveForward=1'}If I view the properties of the page that the button is now opening, the URL is: /onlinelearning/trnmnu.asp&moveForward=1It should be something like: /onlinelearning/trnmnu.asp?roleid=909&caseid=1723&presid=8907&moveForward=1It's not pulling in the querystring info.Any ideas?