Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

How to check if the URL contains a given string

Asked by Kayla Shinn Jul 27, 2021 1.2K views 1 answer
Share

About this question

How could I do something like this:

[removed]
$(document).ready(function () {
    if[removed].contains("franky")) // This doesn't work, any suggestions?
    {
         alert("your url contains the name franky");
    }
});
[removed]

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.