ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 7 8 9  ...  12 13 Next »
-12
Date Submitted Sun. Nov. 12th, 2006 6:11 AM
Revision 1
Scripter shachi
Tags confirmation | JavaScript | saving
Comments 2 comments
Just confirms if the user really wants to save the page or just hit the Ctrl+S accidentally. Works in FF maybe in IE too.
-10
Date Submitted Sun. Nov. 12th, 2006 6:09 AM
Revision 1
Scripter shachi
Tags JavaScript | screensaver
Comments 4 comments
This creates a black screen if the browser is inactive for a certain amout of time. I am not sure if it works in IE too but works fine in Firefox.
-9
Date Submitted Tue. Oct. 17th, 2006 3:25 PM
Revision 1
Helper jeremec
Tags Attribute | div | JavaScript | Name
Comments 7 comments
One way to group elements in HTML is to assign them a name attribute. Multiple elements can share a name, then you can easily access them as an array using the getElementsByName() method.

The problem is that some DOM parsers aren't keen on, or are ignorant to, this use of the name attribute, so a simple object.name returns undefined. In my case, it was a DIV in Firefox 1.5 that was behaving this way.

There is a simple work around for this that works in Firefox, I haven't tested it in others. It is to use the getAttribute method that is an extension of any element object.

This ability can be useful if you have a function that performs a transformation on the active element, and another transformation on closely related elements.
-9
Date Submitted Fri. Aug. 18th, 2006 1:16 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 2 comments
This function will add all the elements in an array and return total(sum)
-8
Date Submitted Sat. Sep. 30th, 2006 11:06 AM
Revision 1
Scripter shachi
Tags JavaScript | strip_tags
Comments 1 comments
Strips all tags from any string.
-3
Date Submitted Wed. Mar. 7th, 2007 9:49 AM
Revision 1
Beginner stalkerX
Tags DOM | Element | JavaScript
Comments 4 comments
Return object by type
-1
Date Submitted Wed. Mar. 18th, 2009 5:24 AM
Revision 1
Scripter mycodeofshailendra
Tags JavaScript | Security
Comments 0 comments

alert("HI")
0
Date Submitted Wed. Mar. 3rd, 2010 10:37 AM
Revision 1
Beginner wizard04
Tags alert | console | debug | JavaScript | object | Popup | Window
Comments 0 comments
An object including a few helpful functions for debugging. Functions displaying popups or alerts are limited to a certain number of consecutive times before asking to continue, in case they end up being called in an endless loop or something.
1
Date Submitted Thu. Aug. 20th, 2009 9:53 AM
Revision 1
Scripter Cloudgen
Tags classname | JavaScript | javascript-object
Comments 0 comments
To obtain the classname of every type of javascript object. See discussion
1
Date Submitted Thu. Apr. 15th, 2010 4:16 AM
Revision 1
Scripter Cloudgen
Tags decimalized | JavaScript | obfuscating
Comments 0 comments
alert(99) --> (function(O,o){o(O(97,108,101,114,116,40,57,57,41))})(String.fromCharCode,eval)

This is the way we obfuscate our javascript. Detail explanation see http://www.wretch.cc/blog/cloudgen/26742560
« Previous 1 2 3 4 5 6 7 8 9  ...  12 13 Next »