LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-24-2004, 01:33 PM   #1
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Rep: Reputation: 30
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!
 
Old 10-24-2004, 02:04 PM   #2
Gort32
Member
 
Registered: Sep 2004
Distribution: Slack!
Posts: 150

Rep: Reputation: 15
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.
 
Old 10-24-2004, 02:27 PM   #3
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Original Poster
Rep: Reputation: 30
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.
 
Old 10-29-2004, 07:38 AM   #4
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Original Poster
Rep: Reputation: 30
So...can anyone help me with the commands to avoid a new mozilla window when clicking the back button on my keyboard?

Thanks.
 
Old 10-29-2004, 07:41 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
 
Old 10-29-2004, 03:00 PM   #6
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Original Poster
Rep: Reputation: 30
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!
 
Old 10-30-2004, 11:50 AM   #7
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Original Poster
Rep: Reputation: 30
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!

Last edited by evilmonkey; 10-30-2004 at 11:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why mandriva 10.2 gnome2.8 system freezes upon resizing/opening window/new window skaramanger Mandriva 8 08-30-2005 10:22 AM
why mandriva 10.2 gnome2.8 system freezes upon resizing/opening window/new window skaramanger Mandriva 2 08-15-2005 04:38 PM
firefox default browser, opening html pages in new window perfect_circle LinuxQuestions.org Member Success Stories 3 03-29-2005 10:26 AM
Segmentation Faults prevent program opening Elliott Linux - Software 3 09-15-2003 03:42 AM
How to prevent X server from opening port 6000 glock19 Linux - General 5 05-23-2002 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration