P
P
Platon Goldenberg2021-06-13 17:05:23
JavaScript
Platon Goldenberg, 2021-06-13 17:05:23

How to write JS for content embedded from another site?

I need to script content that is loaded from another site to mine through the appropriate script.

Here is the whole code of my index.html

<!doctype html>
<html lang="ru">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Googleforms & Formfacade (LC)</title>
  <link rel="stylesheet" type="text/css" href="css/formfacade.css">
  <link rel="stylesheet" type="text/css" href="css/font.css">
  <script type="application/javascript" charset="UTF-8" src="js/googleforms.js"></script> <!--тут те самые скрипты, которые необходимо связать с содержимым страницы-->
  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> 
</head>
<body>
  <div class="container" id="ff-compose"></div>
  <script async defer src="https://formfacade.com/include/118407997490300297017/form/1FAIpQLSdDgy5ir5-z1t3YYCXpqV7C-K-NjZSyKG20YxpsXpIEgQoSVA/bootstrap.js?div=ff-compose"></script>
</body>
</html>


loverest.site The

interesting thing is that the scripts work only for tags that appear directly in the code above, for example body. But when rendering embeddable content, they do not respond as if they are not in the JS file. They are written correctly, verified when assembling the embedded content manually. How to be?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question