Javascript
Sandvox allows you to insert HTML code in a number of places:
- Raw HTML pages and objects
- Code Injection
Anywhere that HTML code can be inserted a site, you can also use javascript. This can be as part or all of the code.
Note that if your scripts require any additional files or other resources to function, you will have to upload and maintain these files separately from Sandvox.
Preferences
The Sandvox Preferences allow you to specify whether to Load Data from the Internet. With this preference disabled, Sandvox will not load javascript while editing a site. This allows Raw HTML objects that use javascript to load an external resource to be skipped.
We suggest that where you do use javascript, you follow it with code like this:
<noscript> <p>Note: You do not have Javascript Enabled on this browser.</p> </noscript>
This will help remind you that Javascript is not enabled as a result of this preference. Note that the preference has no effect upon a site once it is published. All javascripts should work as normal.
Also, in the Raw HTML object editing window you can set the Content Type to 'HTML - No Preview' and this will cause the HTML object not to display, but to just show a placeholder in the web view while working on your Sandvox site.
Keywords: javascript, java, script, scripts, javascripts, html, code, java-script, java-scripts, code, codes, coding, file, files, resource, resources
