html - How to Open iframe URL in new tab or window? -


i want open iframe url in new tab.

currently, code opens iframe url on same windows.

<html>  <head>  <title>demo</title>  </head>  <body>  <!-- start code here -->    <div style="border: 2px solid #ffffff; overflow: hidden; margin: 15px auto; max-width: 1058px;">  <iframe scrolling="no" src="http://www.lazada.com.my/unbeatable-deals/?spm=a2o4k.home.sku-feed-slider-with-banner_27936.31.lbj3bm&bid=my15da" style="border: 0px none; margin-left: 0px; height: 1186px; margin-top: -285px; margin-bottom: -105px; width: 100%;">  </iframe>  </div>    <!-- end code here -->  </body>  </html>

i want bring particular portion of website b web site a. that's why use above iframe

click url inside iframe must open new tab

the link target determined link itself, in order effect want, need change link element on website b.

that means need access edit website b. cannot change content (and link targets content) of arbitrary third party websites.

you can either edit directly, or dynamically change links javascript.

since different website, website a cannot directly access link elements change them. need edit website b include javascript modifies them (e.g. looping on document.links , setting target on each). triggered postmessage , friends.

if cannot edit website b impossible.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -