From: AESouza <aes...@gm...> - 2012-01-21 05:10:31
|
I have my Firefox browser's home page as a local html file. A short version looks like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <body> <a href="javascript:void(window.open('http://config.privoxy. org/toggle?mini=y&set=toggle','ijbstatus','width=450,height=100, resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no, status=no,menubar=no,copyhistory=no').focus());">Toggle</a>*<br /> <a href="http://blog.gmane.org/gmane.comp.web.privoxy.user">Gmane </a>*<br /> <a href="http://mail.yahoo.com/">Yahoo!Mail</a>*<br /> <a href="http://gmail.com/">GMail</a>*<br /> </body> </html> I want help for the first link which is a "bookmarklet" I got from the Privoxy documentation (http://config.privoxy.org/ user-manual/appendix.html#BOOKMARKLETS). It's the script that allows one to toggle Privoxy between the enabled and disabled states among other things. The issue is this: it opens a new window. Can someone who is a wizard at javascript kindly convert it instead to open in a tab in my current browser window when I click on the "link"? Either the current tab or a new background tab will do. (Right-clicking on it doesn't give an option to open in a new tab unlike regular links.) Just to be clear, I don't know javascript and don't know if I'm asking for something that is not possible in Firefox. Thank you for your time! |