I have 2 frames, and I have a link in 2nd frame. I want to put a confirmation on that link for page redirection. The code is the following:
<a href="javascript:;" onclick="javascript:if(confirm('Are you sure you want to delete this item?')) self.location.href='new.asp'; else return (false)">link</a>
It's not working. I tried to replace self.location.href with
parent.location.href - working
parent.frames[0].location.href - working
parent.frames[1].location.href = self.location.href (current document) - not working