PDA

View Full Version : How to? Bookmarklets that pops out an iframe within any webpage.



Qgeis
March 2nd, 2008, 01:53 PM
Can someone teach me or give me links to resources if you know any?

What I want to do is to use a href="javascript:..." link (bookmarklet/favelet) to pop up an iframe over any webpage on any site.

I sort of knows it involves using JS to append some html (JS and iframe) before the </body> element. Set the div to position absolute. Just need a good tutorial or something.

actionAction
March 2nd, 2008, 07:58 PM
Could you clarify? This doesn't really make sense (at least to me) "What I want to do is to use a href="javascript:..." link (bookmarklet/favelet) to pop up an iframe over any webpage on any site." How exactly are you planning on implementing this (any webpage on any website) and what is the desired outcome?

Even without understanding your problem completely, I can tell you that you will use either the Javascript innerHTML or appendChild method to add an element (including an iframe) to a webpage.