I want to get page url from java script and check that url value to blow the script(inside same jsp page).
<script>
var currentUrl=window.location.href;
</script>
<c:when test="${fn:containsIgnoreCase(currentUrl, 'homepage') or fn:containsIgnoreCase(currentUrl, 'accountpage')}">
// need to do some operation for this purticular page only.
</c:when>
Please give me suggestion. Thanks in Advance, Muthu
try this: