Answers for "url check string"

3

check if url contains string

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
  $(document).ready(function() {
    if (window.location.href.indexOf("franky") > -1) {
      alert("your url contains the name franky");
    }
  });
</script>
Posted by: Guest on June-01-2020
0

is url string

+		}else if(preg_match('(jpg|jpeg|png|gif|tif|tiff|bmp)', $path) === 0){
Posted by: Guest on November-30-2021

Code answers related to "url check string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language