You need to sign in to do that
Don't have an account?

I have used input as shown below to redirect to 'EmailMessage' in visualforce page.It is redirecting properly but when I click on 'Cancel' button on Emailmessage page it is not redirect to case page again.
<input value="Send an Email" class="btn" name="SendanEmail" title="Send an Email" type="button" onclick="navigateToUrl('/email/author/emailauthor.jsp?retURL=%2F{!Case.Id}&p3_lkid={!Case.Id}&rtype=003&p2_lkid={!Case.ContactId}&parent_id={!Case.id}');"/>
Redirect properly:

But when we I click on cancel button on above page it is not redirect to Case page it is redirecting to same page.
How to do this to redirect to Case original page when click on cancel button.
Redirect properly:
But when we I click on cancel button on above page it is not redirect to Case page it is redirecting to same page.
How to do this to redirect to Case original page when click on cancel button.