# Imported animated JavaScript SVG with click event to internal page

**URL:** <https://forum.wixstudio.com/t/imported-animated-javascript-svg-with-click-event-to-internal-page/65793>\
**Category:** Ask the community\
**Tags:** wix-studio, seo, code\
**Created:** [December 17, 2024, 9:01pm UTC](https://forum.wixstudio.com/t/imported-animated-javascript-svg-with-click-event-to-internal-page/65793 "2024-12-17T21:01:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nadre\_Davani](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/nadre_davani/32/101909_2.png) [@Nadre\_Davani](https://forum.wixstudio.com/u/Nadre_Davani)\
**Post date:** [December 17, 2024, 9:01pm UTC](https://forum.wixstudio.com/t/imported-animated-javascript-svg-with-click-event-to-internal-page/65793/1 "2024-12-17T21:01:50Z")

</div>

I am importing an animated JavaScript SVG using iFrame \<\>, this will become a X close button for the lightbox, the click event to an internal page does not work.

this works when I put the full web address link: virtualimageinc(.)com/animation  
for SEO and many other reasons I want this to be an internal link and have many versions of it:  
window.location.href = “/animations”;  
[Animations](https://forum.wixstudio.com/animations)

non of them work and I get this when clicked:  
[www-virtualimageinc-com.filesusr.com/html/window.location.href%20=%20"/animations"](http://www-virtualimageinc-com.filesusr.com/html/window.location.href%20=%20%22/animations%22);

I hope this is not a security issue of the Wix Studio and can be solved
