views:

35

answers:

2

catch url by javascript

A: 

use

alert(document.location.href) 

or

alert(window.location) 
Chinmayee
A: 

window.location.href gives you current url. Not sure if that's what you're asking though.

vsz