搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 4 个回答
  • 1 人有此问题
  • 5 次查看
  • 最后回复者为 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 .

所有回复 (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.