Buy Questpond's video subscriptions on
huge discount
.
Online: 922
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
JavaScript
>
Loading ...
How to get current URL?
Posted by
vishalneeraj-24503
on 12/19/2013 | Category:
JavaScript Interview questions
| Views: 2452 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
With the help of location.href property we can get current URL.
For Example:-
function get_url()
{
alert(location.href);
}
It will show the page URL.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
How to get only Port from URL?
Next > :
Can we access Viewstate in Javascript?
Comments or Responses
Login to post response
More Interview Questions by vishalneeraj-24503
Can we access Viewstate in Javascript?
How to access Session value in JavaScript?
How to get Client'IP address?
How to get the Host Name of a computer?
What is syntax for SQL-Server BETWEEN operator?
What will be the output of below code? int total = 8 - 4 + 4 + 2 * ...
What will be the output of below code? int total = ((8 - 4) + (4 + ...
What will be output of Text variable of below Code? string text = & ...
Latest Interview Questions
Your developing web application which access data from a MS sql and ha ...
Differences between ISNULL and NULLIF ?
What will be output of following function when called? public strin ...
How to assign a value to a textbox through javascript?
DB2 - Display the employee details who are working from more than 1 an ...
DB2 - Fetch the current date and time in the following format 24/APR ...
DB2 - Find the NAMEs that have an even number of letters in them
DB2 - Find the count of departments having average salary greater than ...
More ...