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...
The following are two methods of building a link that has the sole purpose of running JavaScript code. Which is better, in terms of functionality, page load speed, validation purposes, etc.?    function myJsFunc() {     alert("myJsFunc"); }...
This question already has an answer here:                           $(document).ready equivalent without jQuery                                      33 answers                                     Okay, this might just be a silly quest...
I’m using JavaScript to pull a value out from a hidden field and display it in a textbox. The value in the hidden field is encoded.  For example,  <input id='hiddenId' type='hidden' value='chalk &amp; cheese' />...
Is there an easy way to take a string of html in JavaScript and strip out the html?...
Note:      The answers & comments below reflect the state of legacy browsers in 2009. Now you can actually set the value of the file input element dynamically/programatically using JavaScript and a dataTransfer or FileList object in 2017....
I have a web page that includes a bunch of images. Sometimes the image isn't available, so a broken image is displayed in the client's browser.  How do I use jQuery to get the set of images, filter it to broken images then replace the src?...
In the following page, with Firefox the remove button submits the form, but the add button doesn't.  How do I prevent the remove button from submitting the form?  <html> <head> <script type="text/javascript" src="jque...
I am having trouble applying a style that is !important. I’ve tried:  $("#elem").css("width", "100px !important");   This does nothing; no width style whatsoever is applied. Is there a jQuery-ish way of applying such a sty...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.