Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7436025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:10:22+00:00 2026-05-29T10:10:22+00:00

Is there a sequence of characters that can be used after malformed javascript code,

  • 0

Is there a sequence of characters that can be used after malformed javascript code, to ensure the subsequent script will be executed?

The idea being that we have separate divisions writing javascript code that will be placed on the same page. The “other” group are notorious for leaving bad code around. Since my code will be in the footer (via site.master), what set of characters can I use to ensure (or make it more likely) that my code will be executed?

Example

 // > "" ;  */ 
 alert("this code will always run, regardless of what happens before...");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:10:23+00:00Added an answer on May 29, 2026 at 10:10 am

    None is defined in EcmaScript itself. A syntactically invalid program will not run at all.

    In HTML, </script><script> will close the current SCRIPT and open a new one, and the failure of one SCRIPT element’s content to parse does not cause other SCRIPT elements’ content to fail to parse since they are distinct programs.

    If the preceding content is always a line comment, as in your example, any line terminator will suffice, and the EcmaScript line terminators are

    U+A     \n
    U+D     \r
    U+D,U+A \r\n
    U+2028  Line separator
    U+2029  Paragraph separator
    

    according to section 7.3 of the spec.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a tool that can generate sequence diagrams from running .NET code?
Is there any real sequence of characters that always compares greater than any other
Is there a way to generate sequence of characters or numbers in javascript? For
Making UML sequence diagram in VS 2010RC I've observed that there is no activation
1) Escape sequences are mostly used for characters constants that either have a special
Is there any valid use for javascript's encodeURI function? As far as I can
Suppose I have: Toby Tiny Tory Tily Is there an algorithm that can easily
Is there an existing class in C# that can convert Quoted-Printable encoding to String
I was wondering if there was a Sequence Diagram generator for C#? Im using
Is there a convenient way to calculate percentiles for a sequence or single-dimensional numpy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.