function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Venkateswarlu BVenkateswarlu B 

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:
User-added image
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.