Sandbox

  • Revision slug: Sandbox
  • Revision title: Sandbox
  • Revision id: 31167
  • Created:
  • Creator: user01
  • Is current revision? No
  • Comment 40 words added, 40 words removed

Revision Content

{{ localize('System.API.page-generated-for-subpage') }}

{{ syntax.JavaScript{code: " <meta content="text/html; charset=windows-1251" http-equiv="Content-Type"> <meta content="text/javascript" http-equiv="Content-Script-Type"> <title>Stack Trace Example</title>     <script type="text/javascript">         function trace() {             try {                 throw new Error("myError");             }             catch(e) {                 alert(e.stack);             }         }         function b() {             trace();         }         function a() {             b(3, 4, "\n\n", undefined, {});         }         a("first call, firstarg");     </script>"} }}

{{ syntax.Html{code: " <meta content="text/html; charset=windows-1251" http-equiv="Content-Type"> <meta content="text/javascript" http-equiv="Content-Script-Type"> <title>Stack Trace Example</title>     <script type="text/javascript">         function trace() {             try {                 throw new Error("myError");             }             catch(e) {                 alert(e.stack);             }         }         function b() {             trace();         }         function a() {             b(3, 4, "\n\n", undefined, {});         }         a("first call, firstarg");     </script>"} }}

Revision Source

<p>{{ localize('System.API.page-generated-for-subpage') }}</p>
<p>{{ syntax.JavaScript{code: "
<meta content="text/html; charset=windows-1251" http-equiv="Content-Type">
<meta content="text/javascript" http-equiv="Content-Script-Type">
<title>Stack Trace Example</title>

    <script type="text/javascript">
        function trace() {
            try {
                throw new Error("myError");
            }
            catch(e) {
                alert(e.stack);
            }
        }
        function b() {
            trace();
        }
        function a() {
            b(3, 4, "\n\n", undefined, {});
        }
        a("first call, firstarg");
    </script>"} }}</p>
<p>{{ syntax.Html{code: "
<meta content="text/html; charset=windows-1251" http-equiv="Content-Type">
<meta content="text/javascript" http-equiv="Content-Script-Type">
<title>Stack Trace Example</title>

    <script type="text/javascript">
        function trace() {
            try {
                throw new Error("myError");
            }
            catch(e) {
                alert(e.stack);
            }
        }
        function b() {
            trace();
        }
        function a() {
            b(3, 4, "\n\n", undefined, {});
        }
        a("first call, firstarg");
    </script>"} }}</p>
Revert to this revision