Make a clickable url which opens/creates 2 Firefox configuration files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shing
    New Member
    • Mar 2007
    • 58

    Make a clickable url which opens/creates 2 Firefox configuration files

    As a start page I usually have several of my bookmarks and a "Home portal". I have decided that I want a new feature.

    Code:
    <html>
    <script language="javascript">
    onclick="document.location.href="about:config"
    </script>
    </html>
    It doesn't appear to be working. What I want to do is make a clickable url that creates 2 pages of the Firefox configuration file. So that i can change values, then alt tab and look at my default values. Basically I click the link "Config" and it pops open twice.
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    I think the browser doesn't permit you to open about:config from a link within the HTML.

    Even your code is wrong.
    Instead of writing it in script tag, write it inside a button tag.[html]<button onclick="docume nt.location.hre f='www.theScrip ts.com'">Open Link</buttom>[/html]Also use the quotes carefully.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Also, replace document.locati on with window.location .

      PS. changed the thread title to something more meaningful.

      Comment

      Working...