Can i pause that data-rel='back' work ?
hello, i don't speak English well, sorry.
i have a question about data-rel='back' working.
i use this code.
when i turn up popup page
<a href='new_post.php' class="ui-btn-active" data-transition="slideup" >New Post</a>
close popup page
<a href="/" data-rel="back" data-icon="delete" data-transition="slidedown" >back</a>
and it work well.
but i want to show alert when i click data-rel="back" button.
i don't know how do i coding.
i use this code
<a href="/" data-rel="back" data-icon="delete" data-transition="slidedown" onClick="checkClose()">back</a>
- function checkClose()
- {
- var retConfirm = confirm("취소하시겠습니까?");
-
- if (retConfirm) {
- alert("yes");
- return true;
- } else {
- alert("no");
- return false;
- }
- }
it works. but data-rel="back" work after 'no' alert.
i want
'yes' alert -> data-rel="back" work
'no' alert -> data-rel="back" don't work
How can i do???
please help me..