Actually I am trying to search whether a particular word exists in URL and trying with below code in in a .cfm file.
It works fine in html page but not working in coldfusion.Can someone help me how to resolve this issue
<script type="text/javascript">
var location = window.location.href;
if (location .indexOf("search_Text") > -1)
{
//do stuff
}
else
{
//do stuff
}
</script>