简体   繁体   中英

Images can be pulled externally from a source <img src=“…” />. Can TEXT be pulled externally without javascript? <span src=“…”>

I can source an image externally from a URL.

<img src="http://www.sourcefile.com/image.jpg" />

Is there a way to externally source text from a URL without needing Javascript?

Example:

<a href="http://www.sourcefile.com/myname.txt"></a>

Will appear as

Jon

...because that's the text inside of the referenced text file.

without javascript, you cant do it. but its possible to use iframe to load some external page content.

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