Which characters can be used for naming a JavaScript variable?  I want to create a small "extension library" for my non-JavaScript users here at work (who all seem to be squeamish when it comes to the language).  I love how jQuery and Proto...
In Perl I can repeat a character multiple times using the syntax:  $a = "a" x 10; // results in "aaaaaaaaaa"   Is there a simple way to accomplish this in Javascript? I can obviously use a function, but I was wondering if there was...
I am so close to getting this, but it just isn't right.  All I would like to do is remove the character r from a string.  The problem is, there is more than one instance of r in the string. However, it is always the character at index 4 (so the...
I try to match/get all repetitions in a string. This is what I've done so far:  var str = 'abcabc123123'; var REPEATED_CHARS_REGEX = /(.).*\1/gi;  console.log( str.match(REPEATED_CHARS_REGEX) ); // => ['abca', '1231']...
I have an array containing strings with special unicode characters:  var a = [     ["a", 33],       ["h\u016B", 44],     ["s\u00EF", 51],     ... ];   When I loop over this array:  for (i=0;i<a.length;i++) {     document.wr...
I need to find out the names for Unicode characters when the user enters the number for it. An example would be to enter 0041 and get given "Latin Capital Letter A" as the result....
I've looked at plenty of questions related to mine here but they're all using different methods to the method I have to use. I'm aware it's a very long winded way to find out when there are simpler ways but I'm just following inst...
I want to make a form like this, and i want to post the form - with javascript - in all the keydowns.  <form action="{$formaction}" enctype="multipart/form-data" method="post"> <input type="text" name="n&#...
Using JS, how can I detect if a special character is entered into an input field as it's typed?  EDIT: Special character being defined as non-alpha/numeric character  EDIT(2):  If it helps anyone else, here's what I came up with:  HTML  <...
I'm building a site that uses a lot of emojis. Kind of like the one's you're used to seeing when texting, or on Instagram, Facebook, etc.  Examples: ???? ???? ????  Of course, not all of the emojis are supported by all the browsers out th...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.