![]() |
VOOZH | about |
The d3.html() function in d3.js is used to fetch and read the file of type HTML. It fetches the file as text first then parses the file as HTML.
Syntax:
d3.html(input[, init]);
Parameters: This function accepts two parameters as mentioned above and described below:
Note: Please create a file named sample.html before going through the below given example.
Example 1: Filename: sample.html Filename: index.html Output: 👁 Image