javascript - Using url parameters for a page link -


what i'm ask may sound stupid i've been trying figure out few days now. want generate link site:

example.github.io/example/example 

that has variable or @ end of it

example.github.io/example/examplevariable 

and read variable page loads. in perfect world this:

http://example.github.io/example/example<script>function(){}</script> 

i need make sure page user goes or @ least ends on original link: i.e. example.github.io/example/example
appreciated.

if wondering.
yes on github if applies. barely know php that's not best. it's todo list manager app i've made. there load function users can share lists. load string (variable i'm trying read) looks this:
/loadname#theme#item a,item b,ect.

if you're using github pages use url parameters. in case url this: http://mypage.github.io/test/?myparam=value

then query javascript , execute based on url parameters url contains.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -