You are covering your javascript inside a "onclick" string, so imo the \n has to be escaped.
try \\n which should produce what you want. <input type="submit" value="eAi" onclick=' <- string start // your "stringified" js comes here. var text = "some text \\n second line"; '> <- string end -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.

