LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Firefox: prevent opening a new window (https://www.linuxquestions.org/questions/linux-software-2/firefox-prevent-opening-a-new-window-246786/)

evilmonkey 10-24-2004 01:33 PM

Firefox: prevent opening a new window
 
Hello. I want to bind the "BACK" key of my keyboard to the back button of mozilla firefox 1.0PR using Lineak. However, no matter what command I punch in, it always opens a new firefox window. I have tried "firefox --back", "firefox javascript:history.back(1)", and " javascript:history.back(1)". All of them open a new window. How can I go around that, and make my button work in the current window of firefox?

Also, is it possible to have all the files that are suppossed to open in a new window open in a new tab?

Thanks!

Gort32 10-24-2004 02:04 PM

http://update.mozilla.org/extensions...?id=50&vid=673

I don't know if this is overkill for what you want, but it shold do the job.

evilmonkey 10-24-2004 02:27 PM

Well, it took care of the second part of my question (opening links in new tabs instead of new windows), but when I click the back button my my browser, it still opens a new firefox window. Thanks for solving half my problem though. :)

evilmonkey 10-29-2004 07:38 AM

So...can anyone help me with the commands to avoid a new mozilla window when clicking the back button on my keyboard?

Thanks.

acid_kewpie 10-29-2004 07:41 AM

the only tab modifying extension i've found that has any real power, or even does what it says it does, is the TabBrowser extension, which oddly isn't actually held within the firefox extensions page anymore... still work sgreat though.

http://extensionroom.mozdev.org/more-info/tbe

evilmonkey 10-29-2004 03:00 PM

Hello. This is a little bit better than single window that Gort32 reccommended, but it still doesn't fix my problem of the back button on my keyboard. When I press it, firefox tries to open another instance of itself. I'm still looking for a way around it.

Cheers!

evilmonkey 10-30-2004 11:50 AM

Hello. I got the way to do this from the firefox support forums. The command to put into linEAK for the "Back" and "Forward" buttons on your browser is the following:

Back: firefox -remote "openURL(javascript:history.go(-1);)"
Forward: firefox -remote "openURL(javascript:history.go(1);)"

Good luck and thanks for the help!


All times are GMT -5. The time now is 05:42 AM.