Hi,
I am trying to figure out how to navigate through frames based on confirmation result. In my left frame I have a list of link, now if I click on a link I use a javascript function to ask for confirmation from the user if he actually wants to leave the current page. If the user choose yes, I populate the link in the right frame, if not I leave the right frame alone where it was. Now I am able to to the first part of this but I am unable to achieve the second part. Can some one shed some light on this. Below is javascript function that I am using.
function confirmPDRSearch()
{
var ans = confirm ("Are you sure you want to navigate away from this page?");
if(ans==true)
{
window.SideBar.target = "SearchPDR.aspx";
}
else
{
(I don't know how to handle the else part)
}
}
Thank you,
Muru
I am trying to figure out how to navigate through frames based on confirmation result. In my left frame I have a list of link, now if I click on a link I use a javascript function to ask for confirmation from the user if he actually wants to leave the current page. If the user choose yes, I populate the link in the right frame, if not I leave the right frame alone where it was. Now I am able to to the first part of this but I am unable to achieve the second part. Can some one shed some light on this. Below is javascript function that I am using.
function confirmPDRSearch()
{
var ans = confirm ("Are you sure you want to navigate away from this page?");
if(ans==true)
{
window.SideBar.target = "SearchPDR.aspx";
}
else
{
(I don't know how to handle the else part)
}
}
Thank you,
Muru