This question already has answers here:
Adding favicon to javascript Bookmarklet (uses window.open)
(3 answers)
Can I create a bookmarklet button with icon?
(1 answer)
Closed 7 months ago.
I'd like to write a bookmarklet for Chrome. Something like this.
<a href="javascript:void%20function(){var%20a=prompt(%22What%20is%20your%20name%3F%22,%22Your%20Name%22);null!=a%26%26alert(%22Hello%20%22+a)}();">
Oxford Extra
</a>
It works. On a real page one can drag this link to the bookmark panel and drop there.
The problem is that there is no icon.
If it were an ordinary link, the favicon of a site would appear. But in case of this bookmarklet, the Chrome's default icon is selected, which is not good.
How can I give the bookmarklet an icon?
Related
This question already has answers here:
disallow window open in javascript
(2 answers)
Override window.open()
(1 answer)
Closed 4 years ago.
I want to get rid of the window.open function. Is it somehow possible to override or deactivate this function?
I fact a want a browser in which the function window.open is not implemented at all. And I want a browser which is not able to load any resource which comes from another host than that one typed into address bar. (I know that many pages would not work any more in that browser.) But I know I will not get.
Sometime I visit a page that uses window.open by onclick for advertisement. I’m not against advertisement, but against unwanted pop-ups.
I want to inject those pages with my own JS to disable open().
This question already has answers here:
How to display text in the browser status bar?
(6 answers)
Closed 6 years ago.
You know when you hover a < a> element and the link appears in the bottom left corner of the browser?
Is it possible to do it with another tag?
No. Setting the status bar manually has been disabled in modern browsers for security reasons. A malicious site developer could make the status bar display a different URL than the one they would be taken to on a link.
The Javascript property used to work like this:
window.status = "Status bar text";
This no longer does anything at all by default on any current browser.
No, but you can put an <a> element over/around another element and 'disable' the link (onclick) using javascript to achieve a similar result:
<a href="//Message in the status bar!" onclick="return false">
<div>
This div shows something in the status bar
but is actually surrounded by a disabled link
</div>
</a>
This question already has answers here:
Link to chrome:// url from a webpage
(2 answers)
How to open a page with information about the browser?
(2 answers)
Closed 4 months ago.
Good evening everyone,
I would like to open a window with javascript code.
Usually window.open works fine but the link I provide is chrome://gpu and when I do that, Chrome redirects me to the about:blank page. It happens only with chrome:// links, everything else works fine.
I may understand it is some security issue and Chrome blocks these links to be opened. Do you know if there is a workaround or a setting to allow Javascript to open chrome:// in a new window ?
Thanks a lot,
Clems4ever
This question already has answers here:
How can we open a link in private browsing mode
(2 answers)
Closed 8 years ago.
Is there a way, via Javascript or other code, to open a url in a private/incognito window from an HTML page? Ideally cross-browser or at the very least IE and Firefox.
The anticipated behaviour would be along the lines of
Link
The simplified reason for this is because admins want to be able to log in as users to preview various pages, but without logging themselves out. Whilst there are various other ways around this issue, this would be the simplest (assuming it is possible).
We can't force the visitor to view the page in an incognito/private window. Browsers provide no API that would make that possible outside of an extension.
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
JavaScript: Change browser window status message
When we hover on some link text, the target link is shown in the status bar. How can we hide the link address in the status bar. For example, in following link:
Start Upload
Try this
<a onClick="javascript:$('#fileUpload2').fileUploadStart()" href="javascript:void(0)">Start Upload</a>`
Only javascript:void(0) will show up in the browser window.
James