I am not trying to avoid using code (JS etc) here, but to build a certain tool.
Say I have a url string like domain.com/somthing
, and this URL can return a single string like "John", or maybe a JSON, according to my design.
Is there any way today using html/CSS alone, to populate html elements, using the respond from this url directly without code?
This for example is not possible: <input value='domain.com/somthing' type="text">
even if the url will return a pure string like "John"
.
Is this maybe possible using CSS or developers must use code ?
CodePudding user response:
The iframe
element can display another resource embedded in the current page.
<iframe src="//example.com/"></iframe>
… but there is no HTML or CSS mechanism for setting an attribute value on an arbitrary element using a URL. You would need JS for that (e.g. fetch DOM).