Questions tagged [html-target]

This tag refers to the target attribute in HTML. This is typically used for anchor and form tags.

12 questions
413
votes
14 answers

How to force link from iframe to be opened in the parent window

I need to open the link in the same parent page, instead of open it in a new page. note : The iframe and parent page are the same domain.
Haim Evgi
  • 123,187
  • 45
  • 217
  • 223
2
votes
1 answer

Open URL in system browser eg safari,chrome etc instead of mobile app browser?

I have a simple link in my app, user can share this app via post or private message, now I want when the user clicks this link it should open it in sytem browser not linkdein app browser here is a link in my app document.body.innerHTML +=…
The Dead Man
  • 6,258
  • 28
  • 111
  • 193
2
votes
0 answers

In html, target="_blank" causing a download instead of opening a new tab

The lines of code below functioned for one week and then the files for "example3.log" began to be forced to download on some, but not all, PCs while using the same browser(s) on the different PCs and the files for "example2.out" began to display…
David
  • 21
  • 1
  • 2
2
votes
1 answer

Working example for top vs parent in html

Can someone give me working example of parent and top in html. I cannot find any example to know about this. Everywhere theoretical answers are available. _top: opens in the outermost frame _parent: opens in the parent frame But i am not able to see…
user1770589
  • 375
  • 1
  • 6
  • 19
1
vote
1 answer

ASP.NET Core 7/Razor: how do I direct controller output to a new browser tab?

I have a Razor page with a list of "attachments" I'd like users to be able to "preview". Each "preview" link calls a controller action, which does a database looking, and returns the attachment as an ASP.NET FileStreamResult. Problem: When I click…
FoggyDay
  • 11,962
  • 4
  • 34
  • 48
1
vote
4 answers

Opening a specific link outside the iFrame

I have a specific part of my website that runs in an iFrame. Now in the webpage that is run inside the iFrame, I specified for all links, and they all open inside the iFrame(so if I would link to my main website home page,…
DextrousDave
  • 6,603
  • 35
  • 91
  • 134
0
votes
1 answer

Convert html tagged text to string for a pdf itext7

I am working on a project in asp.net MVC which involves printing various information that the user enters previously. I use the TinyMCE for comment type fields. As we know Tiny allows you to format text using different types of fonts, adding bold…
0
votes
0 answers

Open Telegram link from LinkedIn mobile application browser

On iPhone, I'm unable to open Telegram HTTPS JOIN CHANNEL link from LinkedIn mobile application browser. It always opens webpage in embedded browser and JOIN CHANNEL button is not reacting on clicks and nothing happens. Is there any way to form…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
0 answers

If Form has '_blank' attribute, how to handle the close event for that window?

I have used a form submit (post method) in which form is submitted in new window of the browser, as form's attribute target is set to _blank. I want to do some code as soon as the new window is closed. I want to know how can we handle the close…
0
votes
2 answers

How to get a value of tag

I am getting Nishant by event.target. I want 1414 and as I try to get value by using event.target.value I am getting undefined. How can I get that value?
Nishant Khandelwal
  • 199
  • 1
  • 5
  • 13
0
votes
0 answers

Forcing tab change to defined target

So I've read in a few places that we should limit usage of target="_blank" in favor of target="somethingUnique", which is fine, and I agree with it. Ex.
However I've run into a problem with it. When I open something in a…
Liftoff
  • 24,717
  • 13
  • 66
  • 119