JulienBoyreau
Programmer
Hello everyone,
I am writing a javascript hosted locally by my Firefox (I turned on privileges to write on the disk...)
On the HTML UI, I have a simple <input> and an <iframe>.
When I type an url into an <input>, the web page for this url is loaded into an <iframe>.
When I click a link into the <iframe>, I would like to get back the href of the clicked link as an argument for a function that's outside of the <iframe>.
I succeeded in reading the href from inside the <iframe> (by adding events in the loaded web page) but don't know how to get this string back into the main script?
Does anybody know how to do that?
Thanks for your help,
J.
I am writing a javascript hosted locally by my Firefox (I turned on privileges to write on the disk...)
On the HTML UI, I have a simple <input> and an <iframe>.
When I type an url into an <input>, the web page for this url is loaded into an <iframe>.
When I click a link into the <iframe>, I would like to get back the href of the clicked link as an argument for a function that's outside of the <iframe>.
I succeeded in reading the href from inside the <iframe> (by adding events in the loaded web page) but don't know how to get this string back into the main script?
Does anybody know how to do that?
Thanks for your help,
J.