File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Capture Browser url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Capture Browser url" Watch "Capture Browser url" New topic
Author

Capture Browser url

Himanshu Gupt
Greenhorn

Joined: Dec 03, 2006
Posts: 13
My requirement is , when I click on some button present in toolbar, I want to capture url of the page and show it in a alert box. How can I achieve that using javascript.


Thanks in Advance

Himanshu
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Not sure what the toolbar is but you can look at document.location.href

Eric
 
jQuery in Action, 2nd edition
 
subject: Capture Browser url
 
Similar Threads
generics - incompatible types
how can i capture a call using a midlet ?
Capturing an image to system clipboard
How to transfer a bufferedImage Object?
Passing Class<?> to a method