Login
Remember
Register
References
Ranks
Add reference
JS - if URL contains of this string
0
votes
185
views
added
Mar 11, 2022
in
Javascript
by
lcjr
First Warrant Officer
(
11,700
points)
if (window.location.href.indexOf("1581109") > -1) { alert("your url contains this 1581109"); }
url
javascript
string
contain
Related reference
JS - if URL contains specific string
JS - To check URL contains multiple strings
JS - Add property to JSON if query string exist in URL
JS - get full query string or URL parameter
JS - Add query string to parameter if value exist in JSON
JS Basic - JS string, convert Date format
JS - Use apostrophe in a string
JS - Get specific slash value on URL with split()
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
All categories
API
(35)
React
(148)
Javascript
(100)
Next JS
(10)
jQuery
(176)
CSS
(140)
SCSS
(24)
UI design
(1)
Vue
(25)
JSX
(11)
ES6
(8)
Regex
(6)
PHP
(61)
mySQL
(9)
Drupal
(15)
Bootstrap
(22)
Repository
(38)
Software & tools
(38)
Google tools
(28)
Plugins
(13)
Gulp
(9)
NPM
(9)
Node JS
(7)
CMS
(9)
Command-line
(7)
Database
(2)
Domain & hosting
(16)
Elixir
(1)
HTML
(21)
Networking
(4)
Python
(0)
Server issues
(12)
VM & Remote desktop
(2)
VSCode
(6)
Windows
(10)
XSLT
(5)
General
(868)
...