There is an HTML page. Here is a part of the code (iframe cannot be inserted here):
<iframe id="test" src="link" frameborder="0" width="100%"></iframe> I need to make it so that the link value is taken from the file link.txt, as a random string. Link.txt is in the same directory as the HTML file.
The link.txt file will contain 9 lines with URL links and one line with a variable that takes the value from the general_links.txt file in the root folder. Also 1 random line from file.
I understand that you need to process PHP or JS, but it does not work.
и одна строка с переменной, которая берет значение с файла general_links.txt. How is the variable in your static file? or you generate a file every time you access it. and what is the role of this variable? - torokhkun