/How to get active Tab url in safari browser using java script
问题 How to get the browser window or active tab url using java script in a safari browser ? I tried to do it using -> document.url window.location.href But both this solutions are giving me so many urls . I dont know why ? Also I have searched that safari.application.browserWindow.activeTab gives obj of current active window . But I dont know which methods are provided by activeTab class If anyone knows , plz help me . Thanks in advance. 回答1: If you just want the URL of the "top" document in the