> readOnly = (document.location.protocol!='file:');
>
> The 'location' in document.location is called the javascript location property
> Its saying "If the document location protocol, the part of a URL that
> is "http:" or "file:" , is UNTURE ("!=" means untrue in Javascript)
> then set the variable readOnly to TRUE.Actually, to be precise... document.location.protocol is a **text string** (typically either "http:" or "file:"), and != is a javascript comparison operator that means "not equal to", resulting in a value of either TRUE or FALSE being assigned to the readOnly variable when the expression is evaluated. -e --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

