0

In One of my project here is some scripts. How do I get the URL of the current page to use it in my javascript codes? Here is my code :

$(document).ready(function() {
  $("#idea").hideshare({
    link: "current_page_url",
    position: "top"
  });
});
  • 3
    Asking a question on Stack Overflow should be very **late** in your process, well after: Searching the web and looking on MDN. Doing either of those things will find you an answer in seconds. – T.J. Crowder Jun 19 '16 at 17:32
  • And before you *ask* a question, please **search** on SO: [`[javascript] get url of current page`](http://stackoverflow.com/search?q=%5Bjavascript%5D+get+url+of+current+page). – Felix Kling Jun 19 '16 at 17:34
  • 1
    Thank you for your suggession. I am new in Software Development. Very Primary learner. –  Jun 19 '16 at 17:34

0 Answers0