Results 1 to 2 of 2

This is a discussion on open always till I click it again within the Plugins Development section, part of the Chrome Plugins category: Hi, I made a little add-ons for google chrome and this my first time. Can you give a little help ...


  1. #1
    websecurity is offline Junior Member
    Join Date
    Mar 2011
    Posts
    1

    Default open always till I click it again

    Hi,
    I made a little add-ons for google chrome and this my first time. Can you give a little help for this?.


    Here’s the “manifest.json” code
    HTML Code:
    {
        “name”: “Links”,
        “description”: “Most Famous links easy to access.”,
        “version”: “1.0″,
        “icons”: { “128″: “icon_128.png” },
        “browser_action”: {
            “default_icon”: “icon.png”,
            “default_title”: “Click here to access links”,
            “popup”: “popup.html”
        }
    }
    Here’s the “popup.html” code
    HTML Code:
    <html>
    <head>
    <style>
    ul{
    list-style-type:none;
    padding-left:0px 0px 0px 20px; 
    margin:0px;
    }
    </style>
    </head>
    <body>
    <ul>
    <li><a href="http://www.google.com/" target="_blank">Google</a></li>
    <li><a href="http://www.Yahoo.com/" target="_blank">Yahoo</a></li>
    </ul>
    </body>
    </html>
    Now I want to open this “popup.html” file. I mean if I click this add-ons one time it must open always till I click it again. Can you describe how to do it PLEASE.

  2. #2
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    Popups cant stay open, its deliberate design.
    If you want something persistent you either have to inject it in the current page, use a popup window or wait for the infobar or sidepanel apis to come out of experimental.

Similar Threads

  1. Middle Click does not open a link in a new tab
    By andrewaaa5 in forum Chrome Troubleshooting
    Replies: 11
    Last Post: 04-27-2011, 01:15 AM
  2. open entire bookmarkfolder in one click by default
    By marden in forum Chrome Tips & Tricks
    Replies: 0
    Last Post: 11-19-2010, 10:52 AM
  3. extensions don't work or only till restart
    By bartvdc in forum Chrome Plugins
    Replies: 10
    Last Post: 12-23-2009, 07:32 AM
  4. Open chrome:downloads window /w button click.
    By dre__ in forum Plugins Development
    Replies: 4
    Last Post: 08-30-2009, 08:43 AM
  5. right-click open in new tab problem
    By hewligun in forum Chrome Troubleshooting
    Replies: 2
    Last Post: 07-30-2009, 05:08 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •