Is there a way I can modify the URL of the current page without reloading the page?  I would like to access the portion before the # hash if possible.  I only need to change the portion after the domain, so it's not like I'm violating cross...
How can I change a class of an HTML element in response to an onclick event using JavaScript?...
This question already has an answer here:                           $(document).ready equivalent without jQuery                                      33 answers                                     Okay, this might just be a silly quest...
Is there an easy way to take a string of html in JavaScript and strip out the html?...
Is there a quick way to set an HTML text input (<input type=text />) to only allow numeric keystrokes (plus '.')?...
I have a fairly simple page with a sidebar nav and an iFrame in which to load content.  I want to change the content of the of the iFrame by clicking on links in the sidebar nav. I'm using the javascript to change the source (.src) of the docum...
I have heard many times that using JavaScript events, such as onClick(), in HTML is a bad practice, because it's not good for semantics. I would like to know what the downsides are and how to fix the following code?  <a href="#" oncl...
There was a post this morning asking about how many people disable JavaScript. Then I began to wonder what techniques might be used to determine if the user has it disabled.   Does anyone know of some short/simple ways to detect if JavaScript is di...
I would like to return a string with all of the contents of a CSS rule, like the format you'd see in an inline style. I'd like to be able to do this without knowing what is contained in a particular rule, so I can't just pull them out b...
Many times I've seen links like these in HTML pages:  <a href='#' onclick='someFunc(3.1415926); return false;'>Click here !</a>   What's the effect of the return false in there?  Also, I don't usually see tha...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.