How to load an external JavaScript script to (pure) SVG document? January 2, 2024 by Tarik Try this <script xlink:href="https://stackoverflow.com/questions/1797203/file_name" />