TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Get QueryString Variable Value by Javascript
Rachit Patel
Apr 30, 2020
7
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
Get QueryString Variable Value by Javascript.
function
getQueryVariable(a) {
var
c = window.location.search.substring(1);
var
d = c.split(
"&"
);
for
(
var
b = 0; b < d.length; b++) {
var
e = d[b].split(
"="
);
if
(e[0] == a) {
return
e[1]
}
}
}
var
StopVideo = getQueryVariable(
"StopVideo"
);
Get QueryString Variable Value by Javascript
Next Recommended Reading
Get And Set Variable Values From One JavaScript File To Another JavaScript File Using Local Storage