Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

var location = window.location.href;

$
0
0

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>

 

 

 


Viewing all articles
Browse latest Browse all 14291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>