CodeClerks

Show me how to refer retreive the value of of the url in in JavaScript

Show me how to refer retreive the value of of the url in in JavaScript

I have the following code in my index page:

Sokoto State






I want you to show me how I can reference it in my external javaScript file, so that I can assign the value of xlink:href (which happens in this case to be "state.php?state=Sokoto") to a variable


Requirements

Just know JavaScript enough to make this work. Show me how to do it, and immediately it works, I will accept the order as completed


Skills Required

Javascript Ajax

Bids

No bids made yet - be the first!

Bid On Listing

Comments

Please login or sign up to leave a comment

Join
avocable
Do you only want to assign this value to a js variable or also ajax request? If no assign it to a global variable inside index then use it on external js or parse URL with JavaScript. It Will be more clear If you can give more info



Enter a reason for deleting this comment

Write your comment here...
Bid On Listing Created 11 years ago in JavaScript

Other jobs by sarenascott