Skip to content

URLParam.js is a Javascript Plugin to use URL Parameters as Javascript Variables.

License

Notifications You must be signed in to change notification settings

Sinseiki/urlparam.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

urlparam.js

URLParam.js is a Javascript Plugin to use URL Parameters as Javascript Variables.

Download js file → urlparam.js

https://sinseiki.github.io/urlparam.js (You can see 2 examples on this page)

If you add parameters end of URL, you can use these as javascript variables.

Using this JS file, call parameter manually by using 'urlparam' function.


Getting a parameter → urlparam('a string parameter');

Getting parameters → urlparam(['string parameter', 'string parameter', 'string parameter', ...]);

Getting all parameters → urlparam();


example

In this https://sinseiki.github.io/urlparam.js/index.html?a=1&b=abc

you can use variables "a='1'", "b='abc'" because of running 'urlparam()'

About

URLParam.js is a Javascript Plugin to use URL Parameters as Javascript Variables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published