Show the focused div only bookmarklet

Posted by ideotop on Stack Overflow See other posts from Stack Overflow or by ideotop
Published on 2010-03-30T21:26:27Z Indexed on 2010/03/30 23:13 UTC
Read the original article Hit count: 403

Filed under:
|
|
|

I'm searching to select a text from a div, then click on a bookmarklet that remove all html parts in the body except the div where the text is selected

maybe jquery can help with something like :

javascript:var%20s=document.createElement('script');s.setAttribute('src',%20'http://jquery.com/src/jquery-latest.js');document.body.appendChild(s);s.onload=function(){/*the code*/};void(s);

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery