This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Rohkem teavet

How can i prevent loading the source page in the same window.

  • 4 vastust
  • 1 on selline probleem
  • 5 views
  • Viimati vastas cor-el

more options

Example I've an image tag onclicking on that image will loads the target page in the same window. I need to prevent this action and it should load in the new window or new tab. and also i need to execute the solution in firefox headless binary .

Example I've an image tag onclicking on that image will loads the target page in the same window. I need to prevent this action and it should load in the new window or new tab. and also i need to execute the solution in firefox headless binary .

All Replies (4)

more options

Right click and select Open In New . . . .

more options

manirajmkr said

Example I've an image tag onclicking on that image will loads the target page in the same window. I need to prevent this action and it should load in the new window or new tab. and also i need to execute the solution in firefox headless binary .

To be very precise when "_top" is used in the target attribute it Opens the linked document in the full body of the window.

more options

Example url: http://publish.rcc.bps-core.com/creative_preview/rtb/3101/5e/ec/5eec90874448307ca9e49676411afc96.html

All I need is when clicking the image from the above url. it should not load the target url in the same window. instead it should load in the separate window or tab.

more options

You can middle-click a link or hold down the Ctrl key and left-click the link to open the link in a new tab.