Archive for April, 2010
In Javascript, How to Text From Your Clipboard?
on April 30, 2010
It is true, text you last copied for pasting (copy & paste) can be stolen when you visit web sites using a combination of JavaScript and ASP (or PHP, or CGI) to write your possible sensitive data to a database on another server.
Are You Concerned that Older Browsers Don't Support JavaScript and Thus Exclude a Set of Web Users, Individual Users?
on April 28, 2010
Fragmentation of the installed base of browsers will only get worse. By definition, it can seldom improve unless absolutely everyone on the planet threw away their elderly browsers and upgraded to the latest gee-whiz versions. But even then, there’s lots of discrepancies between the scripting of the latest Netscape Navigator and Microsoft Net Explorer. The situation makes scripting a challenge, for newcomers who …
How About 3+4+"8" in Javascript?
on April 25, 2010
Since 3 and 4 are integers, these are number arithmetic, since 8 is a string, it’s concatenation, so 78 is the result.
In javascript, What is the Difference Between a Confirmation Box and An Alert Box?
on April 24, 2010
The Confirm box displays two buttons namely OK and Cancel whereas an Alert box displays only one button which is the OK button.
A True Definition of PHP Developer
on April 23, 2010
In my opinion a true developer is someone who more focuses on business goal and application design than coding. For developers, PHP is just a tool – a very flexible one indeed and very easy to start with – but it also offers great possibilities even for more experienced programmers. The true developer follows the same path in PHP as he would do …
Are Cyber Criminal GEEKS?
on April 22, 2010
Governments of the Industrial World, you weary giants of flesh and steel, I come from Cyberspace, the new home of Mind. On behalf of the future, I ask you of the past to leave us alone. You are not welcome among us. You have no sovereignty where we gather.†These lines have been quoted by John Perry Barlow, in A Declaration of the …
Pakistan’s Cyber Crime Bill 2007
on April 17, 2010
The Federal Cabinet approved the adoption of The Prevention of Electronic Crimes Bill 2007 on 17 January 2007. The proposed law titled as Prevention of Electronic Crimes Bill 2007 offers penalties ranging from six months imprisonment to capital punishment for 17 types of cyber crimes, including cyber terrorism, hacking of websites and criminal access to secure data. The bill deals with the electronic …
How Do We Get JavaScript onto a Web Page?
on April 16, 2010
You can use several different methods of placing javascript on your pages. You can directly add a script element inside the body of page. 1. For example, to add the “last updated line” to your pages, In your page text, add the following: <p>blah, blah, blah, blah, blah.</p> <script type="text/javascript" > <!– Hiding from old browsers document.write("Last Updated:" + document.lastModified); document.close(); // –> …
How to Read and Write a File Using Javascript?
on April 15, 2010
I/O operations like reading or writing a file is not possible with client-side JavaScript. However, this can be done by coding a Java applet that reads files for the script.
How to Detect the Operating System on the Client Machine?
on April 14, 2010
In order to detect the operating system on the client machine, the navigator.appVersion string (property) should be used.

