Title: Inserting Java into Url
Last modified: August 24, 2016

---

# Inserting Java into Url

 *  [krisrichens](https://wordpress.org/support/users/krisrichens/)
 * (@krisrichens)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/inserting-java-into-url/)
 * 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](http://www.theukmoneyclub.org.uk/website/<script)
   src=”/useridexample.js”>
 * Can You help?

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

 *  [Morgan Estes](https://wordpress.org/support/users/morganestes/)
 * (@morganestes)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/inserting-java-into-url/#post-6137604)
 * 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?
 *  [Doug Vanderweide](https://wordpress.org/support/users/dougvdotcom/)
 * (@dougvdotcom)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/inserting-java-into-url/#post-6137605)
 * 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](http://www.w3schools.com/js/js_cookies.asp)
   for more information.

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

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

## Tags

 * [20q2016](https://wordpress.org/support/topic-tag/20q2016/)
 * [code](https://wordpress.org/support/topic-tag/code/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [java](https://wordpress.org/support/topic-tag/java/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Doug Vanderweide](https://wordpress.org/support/users/dougvdotcom/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/inserting-java-into-url/#post-6137605)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
