add page

hey, i want ask how to add html pages, i have a page this page have link to 5 css pages and 5 js pages how can i add it without change anything in it #Rawabi

Hi,

It’s not possible to add HTML pages. Wix Code manages its own HTML using the $w API .

WixCode understands all of Javascript, except for anything that accesses the DOM.

This keeps the user from inadvertently “breaking” something. I myself tried to hack things from the code, from an iFrame, and in my dreams, but WixCode wasn’t having any of it.

Accessing document elements such as div, span, button, etc is off-limits. The way to access elements on the page is only through $w.

One small exception is the $w.HtmlComponent (which is based on an iFrame). This element was designed to contain vanilla HTML and it works just fine. You just can’t try to trick it by using parent, window, top, etc.

Good luck,

Yisrael

hello my friend
you can use the wix HtmlComponent it will help you insert full html page inside a frame but your css and js files must be hosted on a web hosting –
and after that you can use the messaging api to send and receive data from the html page
check this article - look at the messaging exmaples

R3d #Rawabi