Posted on July 28th, 2008 by Jans
Today I came across with a scenario in Javascript functions that the number of parameters would change in the runtime. When I searched in google I found that, In JavaScript we can pass any number of parameter and get these parameter at run time.
JavaScript functions have a special property called arguments. This contain an array [...]
Filed under: JavaScript | 1 Comment »
Posted on December 16th, 2007 by Jans
One of the problems in e-commerce is how to protect the user from making mistakes. It’s even more critical when your protection target is on-line payments. Usually, you need to send a request to a credit authorization system, get back a transaction number, and only then charge the user’s bank account. A common scenario is [...]
Filed under: JavaScript, Tips & Tricks | No Comments »
Posted on November 26th, 2007 by Jans
To handle references to a window properly, you should always assign the result of a window.open() call to a variable. A call to the window.open() method returns a value of the new window’s object if the window opens successfully, or null if it fails (due to low memory, for example). This value is vitally important [...]
Filed under: JavaScript, Tips & Tricks | No Comments »
Posted on November 22nd, 2007 by Jans
If you chose the “Remember” option for logins in webpages, you can reveal it easily. It doesn’t require any software to reveal hidden passwords under asterisks and don’t need to waste your time in cracking master password.
Simply enter the following line of javascript below at the address bar and hit enter.
Javascript:(function(){var s,F,j,f,i; s = “”; [...]
Filed under: JavaScript, Security | No Comments »
Posted on November 20th, 2007 by Jans
Avoid the usage of document.bgColor. Use document.body.style.backgroundColor instead.And one more thing, I don’t know how many of us are aware about this [ even me too till today ]………………
the following three references are equivalent.
document.body.style.backgroundColor
document.body.style['backgroundColor']
document['body']['style']['backgroundColor']
Filed under: JavaScript, Tips & Tricks | No Comments »