Unable to redirect to the page using window.location of javascript for the code given below
<script language="javascript">
function confirmation() {
var answer = confirm("Do you want to add more Bussess?")
if (answer){
}
else{
alert("Thanks for using Bus Entry form")
window.location = "adminHomePage.jsp"
}
}
Anyone can tell me the reason for this.?
i have asready tried full path of the file