• krisrichens

    (@krisrichens)


    Hey,

    I am trying something out and i need a little help. i have a website and i am looking to change it to a cashback (Have a theme ready etc) I have the get user id code in java, however i was wondering how i would go about adding the java to the url i.e http://www.theukmoneyclub.org.uk/website/<script src=”/useridexample.js”>

    Can You help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi krisrichens,

    It seems like you’re asking to add a script tag to the URL itself to try to load a JavaScript file, which is very dangerous and not recommended.

    If you’re trying to add the user ID to the URL, are you trying to add it to the current URL or to links within the site?

    I think you mean, you want to store some user variable and persist it across URLs so it can be retrieved in JavaScript.

    The easiest way to do that is via cookies. See this W3 tutorial for more information.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Inserting Java into Url’ is closed to new replies.