getting the url of the page and the url of the selected hyperlink
Posted
by Dan
on Stack Overflow
See other posts from Stack Overflow
or by Dan
Published on 2010-06-10T11:21:49Z
Indexed on
2010/06/14
7:02 UTC
Read the original article
Hit count: 174
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
© Stack Overflow or respective owner