No matter there are sources that state downloading a file with AJAX is not possible there are many queries to do that and of course there is a way to do it. Downloading a file with AJAX has a trick…
No matter there are sources that state downloading a file with AJAX is not possible there are many queries to do that and of course there is a way to do it. Downloading a file with AJAX has a trick…
Load JavaScript dynamically This is the snippet you can use. function loadScript() { var script = document.createElement(“script”); script.type = “text/javascript”; script.src = “http://example.com/some.js”; document.body.appendChild(script); } The code is self explained. You have to add only onload…
jQuery HTML methods addClass() Adds one or more classes (for CSS) to selected elements after() Inserts content after selected elements append() Inserts content at the end of (but still inside) selected elements appendTo() Inserts content at the…
Mozilla Firefox Add-ons Firebug is the most useful and esential plugin for Firefox, that web developers use. Wealth on functionality to debug CSS, HTML, JavaScript. It also can be used to view loading times of the resources with and optimize…
Prototype Prototype is build-in JavaScript object whish is cild of all objects and is used to create methods and properties of all instancies of an object. function MyFunc(){ …} MyFunc.prototype.customEvent = function(e, obj, evt, args){ …}; You can…
The syntax of window.open method is given below: open (URL, windowName[, windowFeatures]) URL The URL of the page to open in the new window. the argument could be blank. windowName A name to be given to the new window. this…
Few days ago I was searching for tool to resize the browser window. It is mandatory that every web developer has one. The first ten result give the blog of Pete with the solution. Just type that in the browser…
JavaScript redirect code snippet If you have nested iframes and want to redirect the whole page from the nested frame use this: parent.document.location = ‘url_to_go’; If you have more than one nesting use “parent” as much as nested iframes are.…