%META:TOPICINFO{author="ProjectContributor" comment="" date="1437500521" format="1.1" version="1"}%
%META:TOPICPARENT{name="DeveloperDocumentationCategory"}%
---+ Javascript

Foswiki will work without Javascript enabled in the browser:
   * When performing read-only actions, Eg. =view=, =rdiff=
   * If ={Validation}{Method}= is set to anything other than =strikeone= in
   [[%SCRIPTURLPATH{"configure"}%][configure]], write/update actions such as
   =edit= and =save= will work also

User experience is significantly improved if it is enabled.

Foswiki Javascript support includes a number of base Javascript files,
attached to this topic, that provide support for features in the basic screens,
and are used by most skins. These files are automatically included as required
by skins.

These files are gradually being phased out in favour of JQueryPlugin
which uses the industry-standard JQuery framework to provide high quality
user interface components.

You can use Javascript in the body of topics, but it is highly recommended
to use the <sticky>[[VarADDTOZONE][%<nop>ADDTOZONE{"script" ...}%]]</sticky> macro if you do so.
Bear in mind that inline Javascript represents a significant security risk to
Foswiki sites, and sites vulnerable to hackers should seriously consider
installing the Foswiki:Extensions.SafeWikiPlugin to control it.

*Related Topics:* SkinTemplates, [[Skins]], [[VarADDTOZONE][ADDTOZONE]]
<!--
   * Set ALLOWTOPICCHANGE = %USERSWEB%.AdminGroup
-->

%META:FILEATTACHMENT{name="foswikiWindow.js" attr="h" comment="" date="1437500521" size="1911" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiStyles.js" attr="h" comment="" date="1437500521" size="0" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiDate_src.js" attr="h" comment="" date="1437500521" size="4323" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiArray.js.gz" attr="h" comment="" date="1437500521" size="306" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_renamebase_src.js" attr="h" comment="" date="1437500521" size="1279" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiStringUnicodeChars.js.gz" attr="h" comment="" date="1437500521" size="20" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="strikeone.uncompressed.js" attr="h" comment="" date="1437500521" size="11027" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="strikeone.js.gz" attr="h" comment="" date="1437500521" size="1871" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiString.js" attr="h" comment="" date="1437500521" size="2359" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiStringUnicodeChars_src.js" attr="h" comment="" date="1437500521" size="61" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_renamebase.js" attr="h" comment="" date="1437500521" size="192" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiForm.js" attr="h" comment="" date="1437500521" size="3044" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="strikeone.js" attr="h" comment="" date="1437500521" size="4917" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiStyles.js.gz" attr="h" comment="" date="1437500521" size="20" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki.js" attr="h" comment="" date="1437500521" size="18636" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiWindow_src.js" attr="h" comment="" date="1437500521" size="5003" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikilib.js.gz" attr="h" comment="" date="1437500521" size="637" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiString.js.gz" attr="h" comment="" date="1437500521" size="746" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiCSS.js.gz" attr="h" comment="" date="1437500521" size="382" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiCSS.js" attr="h" comment="" date="1437500521" size="1174" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiPref_src.js" attr="h" comment="" date="1437500521" size="11392" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiDate.js" attr="h" comment="" date="1437500521" size="2499" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiStyles_src.js" attr="h" comment="" date="1437500521" size="860" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiWindow.js.gz" attr="h" comment="" date="1437500521" size="669" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiEvent.js.gz" attr="h" comment="" date="1437500521" size="183" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiArray_src.js" attr="h" comment="" date="1437500521" size="2985" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiPref.js" attr="h" comment="" date="1437500521" size="3661" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiEvent_src.js" attr="h" comment="" date="1437500521" size="1756" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiForm.js.gz" attr="h" comment="" date="1437500521" size="974" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikilib.js" attr="h" comment="" date="1437500521" size="1426" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiCSS_src.js" attr="h" comment="" date="1437500521" size="3763" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiWebTopicCreator_src.js" attr="h" comment="" date="1437500521" size="7618" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiEvent.js" attr="h" comment="" date="1437500521" size="368" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiForm_src.js" attr="h" comment="" date="1437500521" size="10334" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiWebTopicCreator.js.gz" attr="h" comment="" date="1437500521" size="1133" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiStringUnicodeChars.js" attr="h" comment="" date="1437500521" size="0" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiDate.js.gz" attr="h" comment="" date="1437500521" size="890" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_edit_src.js" attr="h" comment="" date="1437500521" size="5818" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_edit.js.gz" attr="h" comment="" date="1437500521" size="918" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikilib_src.js" attr="h" comment="" date="1437500521" size="6086" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiWebTopicCreator.js" attr="h" comment="" date="1437500521" size="3826" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_edit.js" attr="h" comment="" date="1437500521" size="2718" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiPref.js.gz" attr="h" comment="" date="1437500521" size="1044" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiString_src.js" attr="h" comment="" date="1437500521" size="7090" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_renamebase.js.gz" attr="h" comment="" date="1437500521" size="157" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiHTML_src.js" attr="h" comment="" date="1437500521" size="8145" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiHTML.js.gz" attr="h" comment="" date="1437500521" size="570" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiHTML.js" attr="h" comment="" date="1437500521" size="2416" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswikiArray.js" attr="h" comment="" date="1437500521" size="671" user="ProjectContributor" version="1"}%
