This seems to be the easiest thing to do, but it's just not working. In a normal browser the .html and .js files works perfectly, but in the Chrome extension the onClick function is not performing what it's supposed to do.  .js file:  funct...
I'm trying to make a userscript for a website to add custom emotes. However, I've been getting a lot of errors.   Here is the function:  function saveEmotes() {     removeLineBreaks();     EmoteNameLines = EmoteName.value.split("\n"...
I'm an experienced Java programmer but am looking at some JavaScript/HTML5 stuff for the first time in about a decade.  I'm completely stumped on what should be the simplest thing ever.  As an example I just wanted to draw something and add...
I have an anchor with both HREF and ONCLICK attributes set. If clicked and Javascript is enabled, I want it to only execute ONCLICK and ignore HREF. Likewise, if Javascript is disabled or unsupported, I want it to follow the HREF URL and ignore ONC...
I want my Button to change color every time I click on it. But it only changes color on the first click.   I believe the problem is in the setColor function. Every time I click on the Button, count gets set to 1. So even when I set it to 0, it gets...
I cannot get onclick="location.href='link.html'" to load a new page in Safari (5.0.4).  I am building a drop-down navigation menu using the <select> and <option> HTML tags. I am using the onclick handler to load a new page...
I have a javascript file that sets an EventListener of 'click' on every element with the <article> tag. I want to get the id of the article clicked when the event fires. For some reason, my code produces nothing!  My javascript:  articl...
I have two divs, a big one and a smaller over the other, each div has its own OnClick method. The problem I have is when I clicked the smaller div, the big div's OnClick method is called too.   Who can I avoid that?...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.