简体   繁体   中英

iframe load especific DIV from an external link?

I'm creating a page with a IFRAME. An iframe that loads an external link: http://www.bet365.com/#/AVR/B144/

The problem is that the page loads the default sport (Horse Racing). I would like that the iframe load other virtual sport, like 'Soccer' for example.

Tha problem is that the Soccer doesn't have an especific link, but only an especific DIV. It's necessary a manual click to select this sport.

In that case, it's possible to make an iframe that loads an especific div from an especific external link?

I cannot reach the site, which tells me in Romanian that my access has been restricted. To help you I am assuming the div elements you are talking about have id s. Let's suppose that the div containing soccer has the id of "soccer" . In this case you can have the following src for your iframe : yoururl#soccer .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM