How do I get rid of this annoying blank popup - html

Sorry about the wording for my question title.
I have a basic HTML anchor tag that when clicked it is suppose to bring up a dialog box to download a file from a differnt website.
I am using an attribute of target="_blank" so that when my hyperlink is clicked, I don't navigate away from my main window.
This is all the easy part (if it was so easy I wouldnt be here though).
When I do the above though, and click on the hyperlink, an annoying blank window pops up with my download dialog box behind it.
How do I get rid of that annoying blank window and keep only my download dialog box on the screen?
Below is the HTML I'm working with...
<a href="http://www.fake-domain-name.com/downloads/setup.msi"
target="_blank">
<img src="images/download.png" alt="download file"/>
</a>

Lose the target="blank".
You know that is supposed to open a new window/tab, do you?

Related

Can someone identify what this toolbar for an editable div could potentially be?

I was working with the ability to paste images into a div where it would then be uploaded via a post request. So far it seems to be working, but I noticed this toolbar that seems to show up when I make the content editable. As a result of this, the user is able to manipulate the div beyond just pasting an image which is what I do not want them to do.
<div tabindex="1" id="pasteZone" contenteditable="true" onkeypress="return false">
<span id="pasteMessage">Right click and paste an image, or click and press (ctrl+v for windows or ⌘+V for Mac)</span>
</div>
I need the paste zone to be editable so that the windows context menu allows for the option to paste the screenshot and have the option to ctrl+v or what have you. But I also do not want my users to be able to add text. It seems that I am able to do that successfully as far as key presses go, but the toolbar destroys that possibility.
What I have done:
I looked online to see if other examples of this occurred but I could not find anything on this particular issue. I checked to see if this was the standard for any contenteditable enabled div, but it is not. Other websites that have this do not show this toolbar.This leads me to believe that this has something to do with Bootstrap. If this is the case, how would I prevent this toolbar from showing?
Image:

How to open Internal Links (label links) in same tab in google blogger

My blog url: https://fashionindiar.blogspot.com
I am unable to open the label links on my stand alone home page, in the same tab / window. Actually, by mistake I checked the respective checkbox under the Link button on menu bar earlier, after which I am unable to revert. However, the checkbox shows unchecked.
Also, please note that I have Social Media buttons on my home page, which should open in new tab / window (I have already activated the respective option under Link button, and I don't want to tamper with it).
Please help me to open all label links (on my home page) in the same tab / window, and not in any new one.
Looking forward to your reply.
Thank you.
Shampa Sengupta
To open links in the same frame as it was clicked remove the attribute target="_blank" from <a> tags or change it to target="_self"

Tab through a webpage manually

I am trying to navigate through a webpage using just my keyboard. Through the use of my tab key I can enter in data into several input boxes, and press several submit buttons.
However I run into a problem when trying to set focus to an image element on the page. For some reason it does not allow me to select it with the tab key. I can click on it with my mouse and then a popup appears but this really slows down efficiency.
I have considered creating a script in VBA to do this but right now I would prefer a quick-fix without having to spend hours developing a macro.
NOTE: I did quickly try to assign the reference to the <img> element and use the Click and Focus methods in VBA but that didn't work. I don't get an error, the code runs fine but nothing happens on the webpage. This leads me to think that this will be a bigger project than it appears, hence my reluctance to go down that path.
I did a bit of research and it seems that tabindex is not supported by the <img> element. Does that mean what I am trying to accomplish is impossible with the keyboard? Is code my only option?
If anyone knows anything that could help in VBA by all means I will take your advice into consideration.
Unfortunately the webpage is password protected and its a company account therefore I cannot post it.
After right-clicking inspect element in my Chrome browser this is what I see:
<img alt="View Quantities At Other Locations" src="/WebOrder/Images/CheckQtys.gif"
title="View Quantities At Other Locations" class="popup"popupdirection="upperleft"
popupwidth="380" popupcontent="#ProductQuantitiesForAccessibleBranches"
onbeforepopupcreate="onBeforePopupCreate_GetProductQuantitiesForAccessibleBranches(this)"
popupajaxformid="GetProductQuantitiesForAccessibleBranches"
onbeforepopupajaxpost="onBeforePopupAjaxPost_GetProductQuantitiesForAccessibleBranches(this)"
oncompletepopupajaxpost="onCompletePopupAjaxPost_GetProductQuantitiesForAccessibleBranches(this)"
productguid="00000000-0000-0000-0000-000000058927" displayitem="732899500"
brandguid="00000000-0000-0000-0000-000000000000" brandname="" brandsku="">
Does anyone have any ideas how I can set focus to this element (either with my keyboard or VBA)?
You can focus on a div using <div tabindex=0> Stuff Here </div>. Place the image inside the div and use the div to manipulate it.

Display clickable image URL through JEditorPane

I'm making an HTML editor. When I do something like this:
<img src='File:///C:/User/Pictures/sample.jpg' alt='Smiley face'>
I'd like the JEditorPane to recognize the link and make it clickable so it opens in a browser. I don't, however, want the picture to actually show up in the pane. I just want the link to become clickable.
You can add the link to the picture use Photoshop, then you can click it.

Open a new tab when user clicks on the icon

I am new to google extension..
What I want to do in my extension is to display an icon at somewhere in page (Not in the address part nor toolbar but in the left center of the page).
When user clicks on the icon, the new window should open with specific url.
I have already created to do the same by placing icon in toolbar and it works fine.. But I want to display the icon to left-center of the page..
then I tried to display an icon to left center of page by adding element to document.body.. That help me to display the icon but not able to call the browser action or to create new tab on it..
Any suggestion??
Thanks,
Mahesh
I'm just making the comment an answer...
Using target="_blank" on the anchor tag worked for me
<img src="icon.png" />