Created
July 23, 2013 12:51
-
-
Save IliaIdakiev/6062116 to your computer and use it in GitHub Desktop.
Javascript Redirect to current page another controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function impersonate(id) { | |
if (confirm('Are you sure?')) { | |
var url = 'Account/PresentationImpersonateTo/' + id; | |
window.location.href = url; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment