Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

direct the current page to a new page using Javascript

$
0
0

Hi All,

I m developing an app for sharepoint 2013(sharepoint hosted app). I have following code.

function submitOnQuerySuccsess(sebder, args) {
    currentitemID = Termlistitems.get_id();
    alert("Succesfully create your new term");

    var addinghours = confirm("Do you want to add Hours and Leave deatils to this term now ?");
    if (addinghours == true) {
        //confirmation = "You pressed OK!";
        alert(currentitemID);
        window.location.href = '/HoursLeave.aspx';
    }
  
}

what i m trying to do is once user press yes, I want to navigate to HoursLeave.aspx page from the current page(default page)  .
Can soem one please help me to do this. I m doing Sharepoint hosted app.


d.n weerasinghe


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>