I am creating a browser action chrome extension - the user need to press a button.
I want that with any page load a tool tip will appear on the icon telling the user what he can do by pressing the button.
Can I show a tooltip with any page load? or - I thought I can open a popup that explains the icon with content script - the question is how can I place this popup near the icon - can i some how know the position of the icon?
Thank you!
Related
While developing chrome extension I found out that the popup window which open doesn't have arrow pointing to icon like tooltip popup window snapshot while the documentation shows the window with arrow document popup window snapshot. Is it removed? How can I replicate it
How can I add border-radius on chrome extension popup?
Also, can I add something like margin-top to the popup?
I got the answer from chromium developer:
Alas, that's not something you can control. Your popup content is
basically an iframe inside a window - you can't control the host
window
Chrome simply doesn't allow that.
Alternatives are, instead of the popup, opening a new window or injecting a content script in the active tab to display a modal.
I want to dynamically generate some buttons on my chrome extension default_popup HTML page and I want on click to open a model in the middle of the screen NOT a new tab, I saw some other extensions having its options like this, and then display some info.
I think the only possibility isto get rid of the defalt_popup and inject all my scripts through the background page straight into the html page.
This question has a couple bits to it. Basically I want to make the context menu behave like a sidebar that pops out a box with html.
Get the height and location of a users context menu?
Open an interactable html view next to the menu without closing the menu?
Close both the menu and popout on off-click.
So a user can right click on the page,
and then click the contextMenu item to open a page that can hold html
I create a popup using window.open in IE6. Created popup contains a link to other page, which i want to show in the same popup window, but after clicking on the link, the target page is displayed in another brand new popup, so i have 2 popups opened at that moment.
How can i make a new page loaded in the same popup that holds a link to it?
p.s.
a href="somepage.html" target="_self"
didn't help
Using
a onclick="window.location.href = 'http://www.whatever.com/'"
is an option ?