Thursday , 23 March 2017
Home » JavaScript » [JavaScript] How to get Current Page Url using JavaScript
[JavaScript] How to get Current Page Url using JavaScript

[JavaScript] How to get Current Page Url using JavaScript

Hello Friends,

This is very very basic tip but i don’t want this to miss someone who have started his/her carrier in PHP. He must be aware with how to get current page URL using JavaScript. Using JavaScript, you need to get Current URL and use it for other processes. This will be used frequently and you must be aware with this. Here is the way to get Current Page URL using JavaScript.

<script>
var current_url = location.href;
</script>

Feedback and Ideas are always welcome.

      
Plugin by: PHP Freelancer

About Rakshit Patel

I am PHP Freelancer, Rakshit Patel working as PHP Programmer India. I have developed this site to share my knowledge, thoughts and experience during the development of projects. We are group of developers working together. If you want to hire us for any PHP related work, you can reach me via Email, Phone or Chat.

One comment

  1. i have greate uses of java script in php freelance

    phpcodelance.com
    check

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Notify me of followup comments via e-mail. You can also subscribe without commenting.