views:

28

answers:

0

Hi

This is pretty hard to explain but i'll give it a shot.

Working with Safari to create an extension as is now possible with Safari 5 - how would I go about getting the URL of the current page with using JavaScript and the Safari API?

I would also like to be able to get a hyperlink that is selected. For instance in Safari when you right click on a hyperlink and it says open in a new tab, open in a window etc - clicking opens that hyperlink. What part of the API is used to get access to the link itself, and how does it know its a link in the first place?

I hope thats clear enough.

Thanks