Thursday, 28 June 2012

Hidden Secret China Mobile Phones Codes

The following Mobile Phones codes works with various China mobile Phones such as Alkatel, Sigmatel, Carboonn, GFive, and more such China Mobile phones.

 

–Default user code : 1122, 3344, 1234, 5678
–Engineer mode : *#110*01#
–Factory mode : *#987#
–Enable COM port : *#110*01# -> Device -> Set UART -> PS Config -> UART1/115200
–Restore factory settings : *#987*99#
–LCD contrast : *#369#
–Software version : *#800#
–Software version : *#900#
–Set default language : *#0000# Send
–Set English language : *#0044# Send
–Set English language (new firmware) : *#001# Send

How to browse BSNL 3G unlimited at normal GPRS rate

Here is a 100 % working trick to unlimited use BSNL 3G at the cost of
Normal GPRS

First of all Buy a normal 2g bsnl's sim card and keep balance 50+ rs.
now activate gprs by sending sms GPRS PRE to 53733 It will be
activated in 24 hours, after activation get gprs settings by calling customer care

Now do e-recharge with 230 rs (or whatever unlimited plan exists in your area)
in it, After activation You have to chnage only one thing in yor 3G enabled cell.

Go to settings>tools>settings>phone&g
t;network>network mode> now select UMTS

THEN do manual searching for network u will fing bsnl 3g network there wid small 3g logo along wid its name, select it as default

Now see your data singnals logo, it is converted into 3G
You will get near about 500kbps to 1200 kbps speed
Remember use BSNLEGPRS or BSNLPREPAID as your access point

Google Search Tricks

Well let me tell You what actually google tricks mean. Google tricks/google tips, does not mean hacking google, Using the below Google operators, we can get the desired google result very quickly. Well we can name this as hidden google secrets or Advanced google searching.                              .                                                                  Google Search Tricks tips


Google Trick -1 :- GOOGLE OPERATOR


Type the following highlited words in google search box.


Google has several google operators that can help you find specific information, specific websites or inquire about the indexing of your own   site, below you will find the most important ones: 

Click on the example google trick, and You will be redirected to google.


define: - This google operator will find definitions for a certain term or  word over the Internet. Very useful when you come across a strange word when writing a post. I use this as a google dictionary. example : (define computer)


info: - The google info operator will list the sets of information that    Google has from a specific website (i.e. info:http://hack2007.50webs.com)


site: - This google operator can be used to see the number of indexed     pages on your site (i.e.site:www.hack2007.50webs.com).                  Alternative it can also be used to search for information inside a specific        site or class of sites.


link: - This google link operator allows you to find backlinks pointing         to your site. Unfortunately the count is not updated frequently and             not all backlinks are shown


allinurl: - Using this Google operator will limit the search to results         that contain the desired keywords on the URL structure. (i.e. allinurl:dailyblogtips)


fileformat: - Useful Google operator for finding specific file formats. Sometimes you know that the information you are looking for is likely to be contained in a PDF document or on a PowerPoint presentation, for instance. (i.e. “fileformat:.pdf market research” will search for PDF documents that contain the terms “market” and “research”)



Google trick -2 Top 10 Cool Google Search Tricks


well as we have gained enough knowledge regarding google operators, lets have a look at the following 10 cool google search tricks. Click on the example google trick, and You will be redirected to google.





  1. Google trick to  search different file formats (keyword filetype:doc)




  2. Google trick to search educational resources (keyword site:.edu) example (computer site:.edu)




  3. Finding the time of any location (time romania)




  4. Finding the weather of any location (boston weather)




  5. Tracking commentary of live events (Olympic games Beijing 2008)




  6. Using Google as a calculator (9 * 10)(143+234)(119-8)




  7. Converting currencies (1 USD in INR)(10 US Dollars in Indian Rupee)




  8. Find how many teaspoons are in a quarter cup (quarter cup in teaspoons)




  9. how many seconds there are in a year (seconds in a year)




  10. Tracking stocks (stocks:MSFT)




  11. Finding faces (add imgtype=face to the URL)




google trick -3 Top Essential Google Search shortcuts



#1: Get Local Weather


Type: “weather [city name or zip/postal code]”                                                                     Example: “weather 500054″ or “weather boston”



#2: Check Flight Status


Google automagically pulls flight data from FlightStats.com. All you have to do is enter the flight number.                                                                                                                                                           Type: [flight name and/or number]                                                                                     Example: “bc254″ or “newyork21″



#3: Convert Distances


Type: “[value] [first distance unit] to [second distance unit]”                                              Example: “100 kilometers to miles”



#4: Find a Phone Number


Find a Person:


    Type: “[person’s name], [city or zip/postal code]”                                                           Example: “john smith, london”



Find a Business/store:


    Type: “[business name or type], [city or zip/postal code]”                                         Example: “book store, boston”


Google trick -4 :Google search trick for Rapidshare files search:


#1 site:rapidshare.com inurl:users "*"


#2 site:rapidshare.de inurl:users "*"

#3 site:rapidshare.com inurl:files "*"

#4 site:rapidshare.de inurl:files "*"

#5 site:rapidshare.com inurl:users (pass|password)

#6 site:rapidshare.de inurl:users (pass|password)

Suppose u need some info on ebooks. Then u can try following keyword to see all rapidshare folders having any hacking related thing in it

site:rapidshare.com inurl:users "ebooks"

Sunday, 24 June 2012

Increase the speed of your internet connection without a new modem

As more and more people get quick connections to the internet, such as cable or ADSL, it becomes apparent to the user of a simple dial-up modem that the World Wide Web can quickly turn into the World Wide Wait. Here a trick that can help speed up your current modem without shelling out the big bucks.

There is a setting located in your windows registry called the Maximum Transfer Unit (MTU). This determines the size of the packets of data sent between your and your server. In Windows 95, this setting is has a value of 1,500 bytes when the actual size of internet packets is 1,000 bytes. This can sometimes slow things down. To remedy the situation, simply follow these steps:
In the registry editor (Start > Run > regedit.exe), navigate to
HKEY_LOCAL_MACHINESystemCurrentControlSetServicesClassNetTrans.

 

In the NetTrans folder you should find another folder named "000x" in which x represents a fourth digit. Right-click on the "000x" folder and select New and StringValue. Rename the item that appears in the panel on the right side to MaxMTU, then double-click it to bring up the Edit String box and give it a velue of 1002.

Remember to keep playing with the MaxMTU value until you feel that your internet connection has greatly sped up. Some people report huge speed gains using this tricks, while others hardly notice a difference. In any case, it's definetly worth a try.

Hide 'User Accounts' from users

Go to Start/Run, and type:
GPEDIT.MSC
Open the path

User Config > Admin Templates > Control Panel
doubleclick "Hide specified Control Panel applets"
put a dot in 'enabled', then click 'Show"
click Add button,
type "nusrmgt.cpl" into the add box

Boot Or Start Computer Faster

Many computers take a lot of time to boot (or start ).This is due to many reasons.

Some slight changes can do wonders for your system:

1. Press start->run then type msconfig and press enter.

Go to the startup tab. Here you will see a list of startup items. These are all the programs that automatically start when you boot your PC. It is these that slow down the boot up process.
So uncheck all the unwanted items like ms-office, messengers other utilities that u may not need at startup). Don't uncheck your antivirus software.

Restart your Pc to and see for yourself, your pc will now boot faster....

2. A great new feature in Microsoft Windows XP is the ability to do a boot defragment. This places all boot files next to each other on the disk to allow for faster booting. By default this option is enabled, but on some systems it is not, so below is the information on how to turn it on:

Go to Start Menu and Click Run
Type in regedit then click ok
Find "HKEY_LOCAL_MACHINESOFTWAREMicrosoftDfrgBootOpt imizeFunction"
Select "Enable" from the list on the right
Right on it and select "Modify"
Change the value to Y .
Reboot your Pc and see the change yourself.

3.SPEED UP BOOT BY DISABLING UNUSED PORTS.!!
You may have tried many tweaks like modifying windows XP start-up applications, prefetches, unload DLLs method, etc. And yes those methods do work for me.
I have just accidentally found out another way to give you an extra boost in windows XP's boot performance. This is done by disabling your unused devices in Device Manager. for example, if you don't have input devices that are connected to one of your USB's or COM ports, disabling them will give you an extra performance boost in booting. Go to Control Panel -> System -> Hardware tab -> device manager Disable devices that you don't use for your PC and then restart.

Optimize Display Settings in Windows XP for better performance

Windows XP can look sexy but displaying all the visual items can waste system resources. To optimize:

1. Go to Start
2. Click Settings
3. Click Control Panel
4. Click System
5. Click Advanced tab
6. In the Performance tab click Settings
7. Leave only the following ticked:



- Show shadows under menus
- Show shadows under mouse pointer
- Show translucent selection rectangle
- Use drop shadows for icons labels on the desktop
- Use visual styles on windows and buttons

MAKE YOUR MENUS LOAD FASTER

This is one of my favorite tweaks as it makes a huge difference to how fast your machine will 'feel'. What this tweak does is remove the slight delay between clicking on a menu and XP displaying the menu.

Go to Start then Run
Type 'Regedit' then click 'Ok'
Find "HKEY_CURRENT_USERControl PanelDesktop"
Select "MenuShowDelay"
Right click and select "Modify'
Reduce the number to around "100"
This is the delay time before a menu is opened. You can set it to "0" but it can make windows really hard to use as menus will open if you just look at them - well move your mouse over them anyway. I tend to go for anywhere between 50-150 depending on my mood.

Enable Administrator in Welcome Screen

When you install Windows XP an Administrator Account is created (you are asked to supply an administrator password), but the "Welcome Screen" does not give you the option to log on as Administrator unless you boot up in Safe Mode.
First you must ensure that the Administrator Account is enabled:

1. Open Control Panel
2. Open Administrative Tools

3. Open Local Security Policy
4. Expand Local Policies
5. Click on Security Options

6. Ensure that Accounts: Administrator account status is enabled.


Then follow the instructions from the "Win2000 Logon Screen Tweak" ie;
1.Open Control Panel
2. Open User Accounts
3. Click Change the way users log on or log off
4. Un-tick Use the Welcome Screen
5. Click Apply Options
You will now be able to log on to Windows XP as Administrator in Normal Mode.


Another Method


By default windows XP doesn't show the Administrator in the user list at the welcome screen. Here's a way to get around it.


Now head up to
HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsNTCurrentVersion

WinlogonSpecialAccountsUserlist

create a new DWORD entry and name it as Administrator and change its value to 1.

exit and reboot for the changes to take effect.
To change it back change its value to 0 or simply delete the key.

Funny Computer Trick

Check out these funny trick.

Copy and paste the java script code to the address bar of your browser



 

AND


 



2: Press enter and watch your window's "shaking it". You can change the value of i if you wish :-)

How to Secure your PC from Hackers

Hackers and Browser Hijacking is one area of the Net that affects everyone at some stage.


In addition to having third party utilities such as SpyBot, Anti Virus scanners and firewalls installed there are some changes that can be made to Windows 2000/XP. Below are some details to make your system safer from hackers and hijackers.

Some of these tips require editing of the Registry so it is wise to either backup the registry and/or create a Restore Point.

1. Clearing the Page File at Shutdown
Windows 2000/XP paging file (Sometimes called the Swap File) can contain sensitive information such as plaintext passwords. Someone capable of accessing your system could scan that file and find its information. You can force windows to clear out this file.


In the registry navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management and add or edit the DWORD ClearPageFileAtShutdown. Set it to 1.

Note that when you do this, the system will take much longer to shut down: a system with a really big Page File (! Gig or more) may take a minute or two longer.

2. Disable the POSIX and OS/2 Subsystem.

Windows 2000 and XP come with little-documented subsystems it at allow compatibility with UNIX and OS/2 systems These rues systems are enabled by default but so rarely used that they are best off bring disabled completely to prevent possible service hijackings.

To disable these subsystems, open the registry and navigate to HKEY LOCAL MACHINESYSTEMCurrentControlSetControlSession ManagerSubSystems. Delete the subkeys Os2 and Posix. then reboot.

 

3. Never leave default passwords blank.
On installation, Windows 2000 sets up an Administrator account with total
system access and prompts for a password. Guess what: by default, it allows that password to be blank. If a user doesn't want to type a password, he can simply click Next and the system will be an open door for anyone who wants to log on. Always opt for a password of some kind when setting up the default account on a machine.

 

4. Disable the Guest account
Windows XP comes with a Guest account that's used for limited access, but it's still possible to do some damage with it. Disable it completely if you are not using it. Under Control Panel, select User Accounts, click on Guest Account and then select Turn Off the Guest Account.

 

5. Install Windows In a different directory.
Windows usually installs itself in the WINDOWS directory.
Windows NT 4 0 and 2000 Will opt for WINNT. Many worms and other rogue programs assume this to be the case and attempt to exploit those folders files. To defeat this install Windows to another directory when you're setting it up - you can specify the name of the directory during setup. WINDIR is okay; so some people use WNDWS - A few (not that many) programs may not install properly if you install Windows to another folder but t hey are very few and they are far between

6. Fake out hackers with a dummy Administrator account
Since the default account in Windows 2000 is always named Administrator, an enterprising hacker can try to break into your system by attempting to guess the password on that account. It you never bothered to put a password on that account, say your prayers.

Rather than be a sucker to a hacker, put a password on the Administrator account it you haven't done so already. Then change the name of the Administrator account. You'll still be able to use the account under its new name, since Windows identifies user accounts by a back-end ID number rather than the name. Finally, create a new account named Administrator and disable it. This should frustrate any would -be break-ins.

You can add new accounts and change the names of existing accounts in Windows 2000 through the Local Users and Groups snap in. Right-click on My Computer, select Manager, open the Local Users and Groups subtree, look in the Users folder and right-click on any name to rename it. To add a new user, right-click on the containing folder and select New User. Finally, to disable an account, double-click it, check the Account is disabled box and click OK.

Don't ever delete the original Administrator account. Some programs refuse to install without it and you might have to log in under that account at some point to setup such software. The original Administrator account is configured with a security ID that must continue to be present in the system.

7. Set the Hosts file to read-only to prevent name hijacking.

 

This one's from (and to a degree, for) the experts. The HOSTS file is a text file that all flavors of Windows use to hold certain network addresses that never change. When a network name and address is placed in HOSTS, the computer uses the address listed there for that network name rather than performing a lookup (which can take time). Experts edit this file to place their most commonly-visited sites into it, speeding things up considerably.

Unfortunately hijackers and hackers also love to put their own information into it - redirecting people from their favorite sites to places they don't want to go. One of the most common entries in HOSTS is local host which is set 1770.0.1. This refers to the local machine and if this entry is damaged the computer can behave very unpredictably.

To prevent HOSTS from being hijacked, set it to read-only. Go to the folder %Systemroot%system32driversetc, right-click on HOSTS, select Properties check the Read-Only box and click OK. If you want to add your own entries to HOSTS, you can unprotect it before doing so, but always remember to set it to read-only after you're done.

 

8. Turn off unneeded Services
Windows 2000 and XP both come with many background services that don't need to he running most of the time: Alerter,
Messenger, Server (If you're running a standalone machine with no file or printer shares), NetMeeting Remote Desktop Sharing, Remote Desktop Help Session Manager (the last two if you're not using Remote Desktop or NetMeeting), Remote Registry, Routing and Remote Access (if you're not using Remote Access), SSDP Discovery Service, Telnet, and Universal Plug and Play Device Host.
A good resource and instruction on which of these services can be disabled go to /http://www.blkviper.com/WinXP/


 

9. Disallow changes to IE settings through IE
This is another anti hijacker tip. IE can be set so that any changes to its settings must be performed through the Internet icon in the Control Panel, rather than through IE's own interface. Some particularly unscrupulous programs or sites try to tamper with setting by accessing the Tools, Options menu in IE. You can disable this and still make changes to IE's settings through the Control Panel.


Open the Registry and browse to HKEY_CURRENT_USER SoftwarePoliciesMicrosoftInternet ExplorerRestrictions. Create or edit a new DWORD value named NoBrowserUptions and set it to 1 (this is a per-user setting). Some third-party programs such as Spybot Search And Destroy allow you to toggle this setting.

You can also keep IE from having other programs rename its default startup page, another particularly annoying form of hijacking. Browse to HKEY.CURRENT USERSoftwarePolicies MicrosoftInternet ExploreControl Panel and add or edit a DWORD, Homepage and set it to 1.

 


10. Disable simple
File Shares.
In Windows XP Professional, the Simple File Sharing mode is easily exploited, since it
抯 a little too easy to share out a file across your LAN (or the NET at large). To turn it off, go m My Computer, click Tools, Folder Option and the View tab, and uncheck Use Simple file sharing (Recommended). Click OK. When you do this you can access the Security tab in the Properties window for all folders; set permissions for folders; and take ownership of objects (but not in XP Home)


How to change XP Start button name

I’ve read a number of articles on the internet about changing the text on the Start button in XP. On more than one occasion I’ve seen references to a five (5) letter limitation when the button is renamed. I always wondered if this was true or just an assumption someone made because the default ‘start’ just happened to fit the button size. So, I decided to run a test and see if there really was a five character limit.

First of all just u need to do is download Resource hacker.

Resource HackerTM is a freeware utility to view, modify, rename, add, delete and extract resources in 32bit Windows executables and resource files (*.res). It incorporates an internal resource script compiler and decompiler and works on Win95, Win98, WinME, WinNT, Win2000 and WinXP operating systems. Its just 541Kb in the size.

First Step The first step is to make a backup copy of the file explorer.exe located at C:Windowsexplorer. Place it in a folder somewhere on your hard drive where it will be safe. Start Resource Hacker and open explorer.exe located at C:Windowsexplorer.exe
The category we are going to be using is String Table In Resource Hacker. Expand it by clicking the plus sign then navigate down to and expand string 37 followed by highlighting 1033. If you are using the Classic Layout rather than the XP Layout, use number 38. The right hand pane will display the stringtable as shown in Fig. 02. We’re going to modify item 578, currently showing the word “start” just as it displays on the current Start button.


There is no magic here. Just double click on the word “start” so that it’s highlighted, making sure the quotation marks are not part of the highlight. They need to remain in place, surrounding the new text that you’ll type. Go ahead and type your new entry

Second Step – Modify the Registry Now that the modified explorer.exe has been created it’s necessary to modify the registry so the file will be recognized when the user logs on to the system. If you don’t know how to access the registry I’m not sure this article is for you, but just in case it’s a temporary memory lapse, go to Start (soon to be something else) Run and type regedit in the Open: field. Navigate to:
HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows NT CurrentVersion Winlogon

the Right pane (Fig. 05), double click the Shell entry to open the Edit String dialog box as shown in Fig. 06. In Value data: line, enter the name that was used to save the modified explorer.exe file. Click OK.

Close Registry Editor and either log off the system and log back in, or reboot the entire system if that’s your preference. If all went as planned you should see your new Start button with the revised text.

How to insert important folders in Send to menu

How often do you copy songs from a CD? Or some photos from a CD?

What do you do? You select the required files and do a CTRL –C. Open the destination folder and do a CTRL-V. Here is something you can benefit time from. Customize your SEND TO MENU.

This sounds simple and you can do it in less than sixty seconds.
You can create your own BASKET.

First you’ll need access to hidden files. So change your view settings to make all hidden files visible.
Tools -> folder options -> view (tab) and select the show hidden files and folders.
go to parent drive:/documents and settings/(user name)/send to

Open up my computer and locate your most used folders.

Create a shortcut of the most used folders in SEND TO FOLDER.You can do this in a number of ways.

Right click -> send to desktop(create shortcut) and move the shortcut from the desktop to the SEND TO FOLDER

Copy the most used folder and go to SEND TO FOLDER and right click -> paste shortcut.

Also remember to rename the shortcuts to send to videos or send to potos. We don’t need confusion when we use the same later.

5. DONE.

How to Delete Admin Password w/o any S/W

Boot up with DOS and delete the sam.exe and sam.log files from Windowssystem32config in your hard drive. Now when you boot up in NT the password on your built-in administrator account which will be blank (i.e No password). This solution works only if your hard drive is FAT kind.

Method 2

Step 1. Put your hard disk of your computer in any other pc .
Step 2. Boot that computer and use your hard disk as a secondary hard disk (D'nt boot as primary hard disk ).
Step 3. Then open that drive in which the victim’s window(or your window) is installed.
Step 4. Go to location windows->system32->config
Step 5. And delete SAM.exe and SAM.log
Step 6. Now remove hard disk and put in your computer.
Step 7. And boot your computer :-)

How to add any Application to right click of My Computer

Caution ..
As it is related to Windows regisrty it can be dangerous
so,Try This at ur own risk


To write your name on right click application
please follow the steps.

1.Copy/Paste the following code in Notepad And then Save it as .reg

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellRegistry Editor]
@="Your Name Or Name of the Application"
[HKEY_CLASSES_ROOTCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellRegistry Editorcommand]
@="Location Of The Application"

2.Now edit it and then Type your name In

Eg:

[HKEY_CLASSES_ROOTCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellRegistry Editor]
@="Rajesh"

3. If u want to get any application, once you click Your name or name of application
Then , Type the location Of the application Which u want to open In:

[HKEY_CLASSES_ROOTCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellRegistry Editorcommand]
@="Location Of The Application"

For eg.C:Program FilesYahoo!Messengermessenger.exe
Thats It finally save it And then Run it .

------------------------------------------------------------
To add Application Control Panel

[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellControl Panelcommand]
@="rundll32.exe shell32.dll,Control_RunDLL"

To add Application Add/Remove

[HKEY_CLASSES_ROOTCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellAdd/Removecommand]
@="control appwiz.cpl"

To add Application Reboot

[HKEY_CLASSES_ROOTCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}shell[Reboot]command]
@="shutdown -r -f -t 5"

To add Application Shutdown

[HKEY_CLASSES_ROOTCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}shell[Shutdown]command]
@="shutdown -s -f -t 5"

How to activate multiple login feature in Yahoo

1) Go to Start
2) Navigate to HKEY_CURRENT_USER-->Software-->Yahoo-->Pager-->Test
3)ON the Right side if the page , Right click and choose new Dword Value.
4) Rename it as " Plural ".
5)Double click and assign a decimal value of 1.
6) Now close registry and restar yahoo messenger and try Multiple Login

How to access some Hidden Programs In Windows XP

Is it strange to hear , but true that some good programs are hidden in Windows XP !!!

Programs :

1. Private Character Editor :

Used for editing fonts,etc.
** start>>Run
** Now, type eudcedit

2. Dr. Watson :

This an inbuilt windows repairing software !
** start>>Run
** Now, type drwtsn32

3. Media Player 5.1 :

Even if you upgrade your Media Player, you can still access your old player in case the new one fails !!!
** start>>Run
** Now, type mplay32

4. iExpress :

Used to create SetupsYou can create your own installers !
** start>>Run
** Now, type iexpress

How to Show ur name after time in taskbar

Hi freinds !
I m here to tell u a trick to add up ur name in place of AM and PM beside time and make urself to feel proud among ur group of frnds.
Its simple
Start -> Control Pannel -> Regional and LAnguage option -> Customize (beside English US) -> Go to TIME tab -> Change AM symbol and PM symbol from AM and PM to ur name -> Apply -> Ok ...
IS it changed ??? Might be not ...Now go to time in taskbar and Double Click it to open "Date and time property" ...Look place where time chnges in digital form i.e. 02:47:52 AM , click to arrow to cnage the AM or PM by selecting and press arrow. It will Show ur name or name that was entered by u, Apply -> OK and be HAPPY

How to Clean out the prefetch folder

Windows XP uses a system called 'prefetch' to organize and preload some of the data necessary for commonly used applications and files. A folder called prefetch is used to store the information the operating system needs to carry out this operation.
After several months of use, the prefetch folder may become quite overloaded with older references to software and files that may no longer be in use.It's a good idea to manually empty the older files out of the prefetch folder every few months or so.
To do this: Navigate to 'c:windowsprefetch' and delete all .
PF files that are older than a week or two.

How to Recover the lost administrators password in Windows XP

Slightly more work needed if you lose or forget the Windows XP administrator password.

1.First reboot Windows XP in safe mode by re-starting the computer and pressing F8 repeated as the computer starts up.

2.Then (in safe mode) click Start and then click Run. In the open box type "control userpasswords2" without the quotes - I have just used quotes to differentiate what you have to type.

3.You will now have access to all the user accounts, including the administrators account and will be able to reset the lost password.

4.Just click the administrators user account, and then click Reset Password.

5.You will need to add a new password in the New password and the Confirm new password boxes, and confirm by clicking OK.


All done, you have recovered the lost adminitrators password!

How to find the IP address of the sender in Yahoo mail

When you receive an email, you receive more than just the message. The email comes with headers that carry important information that can tell where the email was sent from and possibly who sent it. For that, you would need to find the IP address of the sender. The tutorial below can help you find the IP address of the sender. Note that this will not work if the sender uses anonymous proxy servers.

Finding IP address in Yahoo! Mail

1. Log into your Yahoo! mail with your username and password.
2. Click on Inbox or whichever folder you have stored your mail.
3. Open the mail.
4. If you do not see the headers above the mail message, your headers are not displayed. To display the headers,
* Click on Options on the top-right corner
* In the Mail Options page, click on General Preferences
* Scroll down to Messages where you have the Headers option
* Make sure that Show all headers on incoming messages is selected
* Click on the Save button
* Go back to the mails and open that mail.
5. You should see similar headers like this:Yahoo! headers : nameLook for Received: from followed by the IP address between square brackets [ ]. Here, it is 202.65.138.109.That is be the IP address of the sender!
6. Track the IP address of the sender

How to find the IP address of the sender in Hotmail

When you receive an email, you receive more than just the message. The email comes with headers that carry important information that can tell where the email was sent from and possibly who sent it. For that, you would need to find the IP address of the sender. The tutorial below can help you find the IP address of the sender. Note that this will not work if the sender uses anonymous proxy servers.
Finding IP address in Hotmail
1. Log into your Hotmail account with your username and password.
2. Click on the Mail tab on the top.
3. Open the mail.
4. If you do not see the headers above the mail message, your headers are not displayed. To display the headers,
* Click on Options on the top-right corner
* In the Mail Options page, click on Mail Display Settings
* In Message Headers, make sure Advanced option is checked
* Click on Ok button
* Go back to the mails and open that mail.

5. If you find a header with X-Originating-IP: followed by an IP address, that is the sender's IP addressHotmail headers : name ,In this case the IP address of the sender is [68.34.60.59]. Jump to step 9.
6. If you find a header with Received: from followed by a Gmail proxy like thisHotmail headers : nameLook for Received: from followed by IP address within square brackets[].In this case, the IP address of the sender is [69.140.7.58]. Jump to step 9.
7. Or else if you have headers like thisHotmail headers : nameLook for Received: from followed by IP address within square brackets[].In this case, the IP address of the sender is [61.83.145.129] (Spam mail). Jump to step 9.
8. * If you have multiple Received: from headers, eliminate the ones that have proxy.anyknownserver.com.
9. Track the IP address of the sender

How to find the IP address of the sender in Gmail

When you receive an email, you receive more than just the message. The email comes with headers that carry important information that can tell where the email was sent from and possibly who sent it. For that, you would need to find the IP address of the sender. The tutorial below can help you find the IP address of the sender. Note that this will not work if the sender uses anonymous proxy servers.

Finding IP address in Gmail:

1.Log into your Gmail account with your username and password.

2. Open the mail.

3. To display the headers,* Click on More options corresponding to that thread. You should get a bunch of links.* Click on Show original.

4. You should get headers like this:Gmail headers : nameLook for Received: from followed by a few hostnames and an IP address between square brackets. In this case, it is65.119.112.245.That is be the IP address of the sender!

5. Track the IP address of the sender.

How to create a hidden user account

This tweak allows an account that is normally displayed on the Welcome screen to be hidden from view. To log on using the account it's necessary to use the Log On To Windows dialog box similar to the one in Windows 2000. #[Start] [Run] [Regedit]#Registry Key:

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsNTCurrentVersionWinlogonSpecialAccountsUserList#Modify/Create the Value Data Type(s) and Value Name(s) as detailed below.#Data Type: REG_DWORD [Dword Value] // Value Name: Type Name of Account to be Hidden#Setting for Value Data: [0 = Account is Hidden / 1 = Enabled]#Exit Registry and Reboot...

While the account is hidden on the Welcome screen, note that the account profile will be visible in C:Documents and Settings or wherever user profiles are stored as well as in Local Users and Groups

How to disable CD Burning

The user can't burn any CDs by this trick. This restriction will disable the use of the inbuilt CD recording functions of Windows.

Open your registry and follow this path: HKEY_CURRENT_USER>Software>Microsoft>Windows>Current Version>Policies>Explorer and
create this key: "NoCDBurning" and set its value to 1. Close you registry and logout/restart your system for the change to take the effect.

How to use Command Prompt as chat messanger

If you want personal chat with a friend

you don't need to download any yahoo messenger
All you need is your friends IP address and Command Prompt.

Firstly, open Notepad and enter:

@echo off

:A

Cls

echo MESSENGER

set /p n=User:

set /p m=Message:

net send %n% %m%

Pause

Goto A


Now save this as "Messenger.bat". Open the .bat file and in Command

Prompt you should see:


MESSENGER

User:

After "User" type the IP address of the computer you want to contact.

After this, you should see this:


Message:

Now type in the message you wish to send.Before you press "Enter" it should look like this:


MESSENGER

User:27.196.391.193

Message: Hi

Now all you need to do is press "Enter", and start chatting!

How to create your own Logon message

Click start
click run
type regedit,
then click ok!

2 In The registry editor, drill down to the following key:
hklmsoftwareMicrosoftWindows NTCurrent versionWinlogon.

3 Right click LegalNoticeCaption,
click modify,
Type: THIS IS NEXT TRICK,and then click ok!

4 Right click legalNoticeText,
click modify, and then Close your message!

5 Restart Your Computer.

6 The message will appear every time you logon!

How to get Windows XP product key from inside the CD

It really work
There is a way to get the xp product code from the cd
just explorer the cd then
open the folder I386
then open the file UNATTEND.TXT and
scroll down to the last line
and it goes to show what dumbasses microsoft are u have a product code.
Have fun u never need to search for a product code for xp again

How to view blue background in MS Word

We hav white backgrond for our doc........... as default... but v can hav a blue also.... lets hav a view

1.) Open a Word Document by going to Start, All Programs, Microsoft Word.

2.) From the menu bar, click Tools.

3.) Select Options from the drop down menu.

4.) The Options dialogue box will open. Select the General tab.



5.) Now you will find a check box that says "Blue background, white text." Click to select it so that you have a tick mark on the box.

6.) Click OK to save the changes and to close the options dialogue box.



Now, go back to your Word document. See the difference?

Yes, now it has a blue background and when you type, the text will be all white. Try this for a few days and you should see a drastic change on the eye strain you've been experiencing.

Try this for yourself and feel the difference!

How to add funny virus message on other's PC

Open notepad and type this:

lol=msgbox ("Warning a virus has been detected on your PC. Press YES to format your hard disk now or press NO to format your hard disk after system reboot",20,"Warning")

Then save it as Virus.VBS

and go to the folder that contains it and open it if a window pops out saying a virus has been detected it's working. Press yes or no to close the window and put it in the startup folder of the victim's account.
On startup the window should appear.
Note: This does not harm your computer as it does not contain virus.

The Yes and no button does not do anything except closing the window. And you can edit the virus in the sentence: Warning a virus has detected on your PC to any kind of virus eg.Trojan Horse like this lol=msgbox ("Warning a Trojan horse has been detected on your PC. Press YES to format your hard disk now or press NO to format format your hard disk after system reboot",20,"Warning")

Oh in between make sure your victim does not panic and really reformat his harddisk.

How to listen PDF files

Hey peeps now u can listen to wats there in a pdf document instead of reading the whole document....
Try out the following key
combinations for Acrobat 6.0 & 7.0:
- ctrl+ shift + b ---> To hear the whole document
ctrl + shift + v ---> To hear only the page
ctrl + shift + c ---> To resume
ctrl + shift + e ---> To stop

How to make Windows XP geniune

This will allow you to bypass the Microsoft Genuine Validation thingythis method works better than many others i've tried before.
forget the cracks and injectors etc... this is the BEST WAY:
1) start > run > "regedit" (without the quotes of course)
2) go to the key:HKEY_LOCAL_MACHINESOFTWAREMICROSOFTWindows NTCurrentVersionWPAEventsOOBETimer...and doubleclick on it.
Then change some of the value data to ANYTHING ELSE...delete some, add some letters, I don't care...just change it!now close out regedit.
3) go to start > run > "%systemroot%system32oobemsoobe.exe /a" (again, dont type the quotes)
4) the activation screen will come up, click on register over telephone, then click on CHANGE PRODUCT KEY, enter in this key: JG28K-H9Q7X-BH6W4-3PDCQ-6XBFJ.
Now you can dl all the updates without activating,
and the Genuine Microsoft Validation thingy won't bug you no more!!
Works with most WinXP versions though ther r some exceptions.

How to lock any folder without software

Suppose you want to lock the folder games in d: which has the path D:Games.In the same drive create a text file and type
ren games games.{21EC2020-3AEA-1069-A2DD-08002B30309D}
Now save this text file as loc.bat

Create another text file and type in it
ren games.{21EC2020-3AEA-1069-A2DD-08002B30309D} games
Now save this text file as key.bat

Now you can see 2 batch files loc and key.Press loc and the folder games will change to control panel and you cannot view its contents.Press key and you will get back your original folder. try it out!!!!!!!


Important note:How to rename your text files as bat files?
Just go to my computer->tools->folder options->go to the view tab.
Now uncheck the 'Hide extensions for known file types'.Press apply.
Now rename ur text files as bat files.

How to remove shortcut arrow from desktop shortcut icons

just go to >start>run>regedit>hkey_classes_root>u
find a file by name lnkfile click on that to that right
u can see a file by name is shortcut delete that and
again come to left click on pipfile u delete again is shortcut
then restart the pc u cant see the shortcut arrow

How to create Virus in Notepad

1) Creating virus trick
open ur notepad n type the following.........
type del c:boot.ini c:del autoexec.batsave as .exe[save it as .exe file....n u can save it by ne name]
create the notepad in c: drive...


2)
Note: but with in seconds harddisk get damaged

create Virus in 5 minutes.......
Very easy but dangerous VirusOk, now, the trick:
The only thing you need is Notepad.
Now, to test it, create a textfile called TEST.txt(empty)
in C:Now in your notepad type "erase C:TEST.txt" (without the quotes).
Then do "Save As..." and save it as "Test.cmd".
Now run the file "Test.cmd" and go to C: and you'll see your Test.txt is gone.
Now, the real work begins:Go to Notpad and
type erase C:WINDOWS (or C:LINUX if you have linux) and
save it again as findoutaname.cmd.
Now DON'T run the file or you'll lose your WINDOWS map.
So, that's the virus. Now to take revenge.
Send you file to your victim.
Once she/he opens it. Her/his WINDOWS/LINUX map is gone.
And have to install LINUX/WINDOWS again.
Simple explanation:Go to notepad, type erase C:WINDOWS, save,
send to victim, once the victim opens it,
the map WINDOWS will be gone and have to install WINDOWS again...
HEY I AM NOT RESPONSIBLE FOR ANYTHING HAPPEN 2 UR COMPUTER IF U TRY THIS!!!!!!!AGAIN :I AM NOT RESPONSIBLE FOR ANYTHING HAPPEN 2 UR COMPUTER IF U TRY THIS!!!!!!!

be aware of this..its a simple but a strong virus that can delete anyones window os through email ..ok
i am not at all responsible for any of the further cause

How to use Symbols in Notepad

Alt+15= ¤ Alt+79= O Alt+129= ü Alt+179= ¦ Alt+229= Õ Alt+20= ¶ Alt+80= P Alt+130= é Alt+180= ¦ Alt+230= µ Alt+21= § Alt+81= Q Alt+131= â Alt+181= Á Alt+231= þ Alt+32=espaço Alt+82= R Alt+132= ä Alt+182= Â Alt+232= Þ Alt+33= ! Alt+83= S Alt+133= à Alt+183= À Alt+233= Ú Alt+34=" Alt+84= T Alt+134= å Alt+184= © Alt+234= Û Alt+35= # Alt+85= U Alt+135= ç Alt+185= ¦ Alt+235= Ù Alt+36= $ Alt+86= V Alt+136= ê Alt+186= ¦ Alt+236= ý Alt+37= % Alt+87= W Alt+137= ë Alt+187= + Alt+237= Ý Alt+38= & Alt+88= X Alt+138= è Alt+188= + Alt+238= ¯ Alt+39= ' Alt+89= Y Alt+139= ï Alt+189= ¢ Alt+239= ´ Alt+40= ( Alt+90= Z Alt+140= î Alt+190= ¥ Alt+240= ­ Alt+41= ) Alt+91= [ Alt+141= ì Alt+191= + Alt+241= ± Alt+42= * Alt+92= Alt+142= Ä Alt+192= + Alt+242= _ Alt+43= + Alt+93= ] Alt+143= Å Alt+193= - Alt+243= ¾ Alt+44= , Alt+94= ^ Alt+144= É Alt+194= - Alt+244= ¶ Alt+45= - Alt+95= _ Alt+145= æ Alt+195= + Alt+245= § Alt+46= . Alt+96= ` Alt+146= Æ Alt+196= - Alt+246= ÷ Alt+47= / Alt+97= a Alt+147= ô Alt+197= + Alt+247= ¸ Alt+48= 0 Alt+98= b Alt+148= ö Alt+198= ã Alt+248= ° Alt+49= 1 Alt+99= c Alt+149= ò Alt+199= Ã Alt+249= ¨ Alt+50= 2 Alt+100= d Alt+150= û Alt+200= + Alt+250= · Alt+51= 3 Alt+101= e Alt+151= ù Alt+201= + Alt+251= ¹ Alt+52= 4 Alt+102= f Alt+152= ÿ Alt+202= - Alt+252= ³ Alt+53= 5 Alt+103= g Alt+153= Ö Alt+203= - Alt+253= ² Alt+54= 6 Alt+104= h Alt+154= Ü Alt+204= ¦ Alt+254= _ Alt+55= 7 Alt+105= i Alt+155= ø Alt+205= - Alt+56= 8 Alt+106= j Alt+156= £ Alt+206= + Alt+57= 9 Alt+107= k Alt+157= Ø Alt+207= ¤ Alt+58= : Alt+108= l Alt+158= × Alt+208= ð Alt+59= ; Alt+109= m Alt+159= ƒ Alt+209= Ð Alt+60= < 110=" n" 160=" á" 210=" +" 61=" =" 111=" o" 161=" í" 211=" Ë" 62=" "> Alt+112= p Alt+162= ó Alt+212= È Alt+63= ? Alt+113= q Alt+163= ú Alt+213= i Alt+64= @ Alt+114= r Alt+164= ñ Alt+214= Í Alt+65= A Alt+115= s Alt+165= Ñ Alt+215= Î Alt+66= B Alt+116= t Alt+166= ª Alt+216= Ï Alt+67= C Alt+117= u Alt+167= º
♀& #9792 widout spaces♂& #9794 widout spaces◘& #9688 widout spaces•& #8266 widout spaces♠& #9824 widout spaces♣& #9827 widout spaces Δ & #916 widout spacesΘ & #920 widout spacesΞ & #926 widout spacesΠ & #928 widout spacesΣ & #931 widout spacesΦ& #934 widout spacesΨ& #936 widout spacesΩ& #937 widout spacesα& #945 widout spacesβ& #946 widout spacesγ& #947 widout spacesδ& #948 widout spacesε& #949 widout spacesζ& #950 widout spacesη& #951 widout spacesθ& #952 widout spacesι& #953 widout spacesκ& #954 widout spacesλ& #955 widout spacesμ& #956 widout spacesξ& #958 widout spacesς
& #962 widout spacesσ & #963 widout spacesτ & #964 widout spacesψ
& #968 widout spacesω & #969 widout spacesθ & #977 widout spaces & #9829 ♥
alt+987=█ alt+6=♠

You can create a nice 3D effect for your windows
Start Regedit
Go to HKEY_CURRENT_USER Control Panel Colors
Make sure the following setting are there:
ButtonHilight=128 128 128ButtonShadow=255 255 255

How to create 3D windows effect

You can create a nice 3D effect for your windows
Start Regedit
Go to HKEY_CURRENT_USER Control Panel Colors
Make sure the following setting are there:
ButtonHilight=128 128 128ButtonShadow=255 255 255

How to remove Shutdown button from logon screen

To remove the shutdown button from the logon screen in WinXP and 2K, use regedit and navigate to the following key: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionpoliciessystem change the value of the dword 'shutdownwithoutlogon' to '0'. exit regedit.

How to launch videos with above normal priority

This tweak will launch WindowsMediaPlayer with the 'AboveNormal' priority setting when opening a mediafile. Having trouble watching a movie when you also have a lot of background processes going on? Here's what to do: 1. Create a new textfile in the root of c:, but instead of giving it the .txt extension you name it wmp_AboveNormal.bat 2. Right-click this file and choose 'Edit', you'll see it'll open notepad. Put this line in: start /AboveNormal C:"Program Files""Windows Media Player"wmplayer.exe %1 %* 3. Save (make sure you save it as .bat, not as .txt) and close. Now all you have to do is register your mediafiles to this batchfile. Here's how to do that: 4. In Windows Explorer choose Tools>Folder Options >File Types 5. Scroll down(press A) to the AVI filetype 6. Click 'Change' and point to c:wmp_AboveNormal.bat . Click OK and Close. Now everytime you dubbleclick an .avi WMP will open with the 'AboveNormal' -priority setting ! (Repeat steps 4-6 to register all mediatypes you want to be opened this way.)

How to turn off Windows XP Animations

You can turn off window animation ("exploding" windows), displayed when you play around with minimizing/maximizing open windows. This makes navigating Windows 95/98/ME/NT4/2000/XP a lot quicker, especially if you don't have a fast video controller, or if you got tired of seeing it all the time (like I did). smile.gif To do this,
run Regedit (or Regedt32) and go to: HKEY_CURRENT_USER Control Panel Desktop WindowMetrics or if you are the only user of your Windows computer
go to: HKEY_USERS .Default Control Panel Desktop WindowMetrics Right-click on an empty spot in the right hand pane.
Select New -> String [REG_SZ] Value. Name it MinAnimate. Click OK. Double-click on "MinAnimate" and type 0 to turn OFF window animation or 1 to turn it ON. Click OK. Close the Registry Editor and restart Windows. Done.

How to use PC as an Alarm

Now this is specially for the ones who are too lazy to get up even when the trust cellphone dies screeching its lungs out. Its pretty simple Creating the playlist create a playlist of your favourite songs in Winamp, WMP or any other player. Export the playlist as a M3U playlist. M3U is generally accepted by almost every player. Triggering the alarm point to start> programs >accessories > system tools >scheduled tasks Create a new task and choose program as windows media player or winamp (May work with others too but I haven't tried anything else) Choose "daily", Enter the time and choose "every day" at next screen. It would now ask for password (leave blank in case you don't have one) Right click on the newly created task and check the "run only if logged in" check box. In the properties. Append the path to the playlist you created in the "run" text box. It should now look like Code:
Code:
"D:windows mediaplayerwmplayer.exe"K:Playlistssmoothies.m3uthe text inside quotes is my WMP's path. It may vary for you. The text after WMP's path is the one to the playlist. Click OK and you're done.

How to change the Icon of any drive in My Computer

All the Xp users would have been bored by the boring icons in their My Computer panel which are adjacent to the Hard disk drives(C:,D: or whatever drive letter you have).


Here is a simple tweak by which you will be able to change this monotonous icon to anything you like,even your own Picture if you wish

You can put any image in place of one which I have shown,even the picture of your favourite celebrity or your dream caror your own Picture.

Here are the steps you need to follow:

1.First of all the picture you want to use should have .ico extension(if you already have a pic with .ico extension proceed to step 2).Most of the pictures we normally use have extensions like .jpg,.bmp,.png..gif etc, so you first need to convert them to one with .ico extension.This is simple.Just go here and put your original image in the 'Source Image 'section,then click on 'Generate Favicon.ico ' button to get your image with .ico extension.

2.Now go to My Computer.Suppose you want to put this icon in place of your original C: image.

Double click and enter C: .Paste your .ico image file in it.Also create a new text file and in it type the following lines:
[autorun]
ICON=favicon.ico

Remember that 'favicon.ico' in the second line is the name of your image file.If you have an image file with .ico extension by the name of 'abc.ico',then use that in the second line in place of 'favicon.ico'.

3.Now rename this text file as ' autorun.inf ' (without the quotes).

Important Note:How do I rename my text file as autorun.inf ?Ans.Go to Tools->Folder options.Under the View tab uncheck the 'Hide extensions for known file types'.Press apply.Now rename your text file as 'autorun.inf'.

4.Now restart your Pc.You are done.Check out the cool new picture you have just added in your My computer panel.

How to restore vanished folder options button

Method

1: Here's how you can get Folder Options back..

1: Open Start menu and from there select Run

2: type gpedit.msc and hit enter

3: now in the Group Policy window, from the left pane, select user configuration->Administrative Tempelates->windows components->Windows Explorer by highlighting it with the mouse cursor..


4: now in the right side you will see an option which says "Removes the Folder Options menu item from the Tools menu"


5: right click on this option and select properties


6: now in the properties under Setting tab, select Disabled and hit OK


........................................................................................................................................................................ Method 2 run

>>gpedit.msc

>>user configuration

>>administrative templates

>>system

disable "prevent access to registry editing tools"

....................................................................................................................................................................... Method 3 regeditOpen your registry and find the key [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer]Create a new DWORD value,

or modify the existing value named "NoFolderOptions" and

set it to equal "1" to hide the options or "0" to show the options.

Log-off or restart Windows for the changes to take effect

How to make fun on a Friend's PC

You know the use of Print screen button on the keyboard [present on top right above insert] .
It captures the screen , right ?
But now I will tell you how to use it for some fun .
Take screen shot of the desktop by pressing Print Screen on the desktop .
Go to Paint and paste this .
Save it .
For Windows XP users

1) On the desktop right click -----> arrange icons by ----> De-select 'Show Desktop Icons '.
2) Now right click the taskbar and select properties .
3) Check auto hide the taskbar. Click OK.
4) Now change your wallpaper and keep the one you saved earlier.
5) If paint is not closed, select File ---------> 'Set as background (Centered) '.
Now on the desktop even if you click any icon nothing will happen !!!
Now do I need to tell youhow you can use it for fun on someone else's PC ?
To revert back to normalcy change the wallpaper and select 'show desktop icons' on the right click menu .

How to put shortcut keys for shortcuts

You can put Keyboard shortcuts for desktop shortcuts.
To do this follow these steps :

1) Right click on the shortcut.
2) Go to properties.
3) Click once on the "Shortcut Key" bar.
4) Press any alphabet that you want to use as Shortcut Key.
5) Press OK Now to open that shortcut,
Press CTRL+ALT+"the alphabet".

How to rename the Recycle Bin

Hey Guys just follow thse simple steps and change the name of your Recycle Bin(where temporarely deleted files are stored)
1)Goto 'start' menu and Choose 'Run' command.
2)Type 'regedit' (without inverted commas). U will see Registery Editor Window on Ur Screen. 3)Now, On the Left Hand Side of the Window you'll see a Tree of folders Just DoubleClick on the HKEY_CURRENT_USER folder>Now in the new folder Tree DoubleClick on the 'Software' folder > then DoubleClick on 'Microsoft' folder>'Windows' folder>'Current Version' folder>'Explorer' folder>'CLSID' folder.
4)Now, You will see a Tree of 3 or 4 folder(don't worry about the no. of folders). Just Click on the folder : '{645FF040-5081-101B-9F08-00AA002F954E}'.
5)Finally, after Clicking on '{645FF040-5081-101B-9F08-00AA002F954E}' folder Goto the Right Hand Side of the Same window and
Double Click On the Default Option and Write in the name You want for Your Recycle Bin e.g. :- Trash #. CLick O.K. button. Goto Your Desktop and Refresh the Desktop and See the magic. Your Recycle Bin has been Renamed

How to boot PC faster in Windows XP

A great new feature in Microsoft Windows XP is the ability to do a boot defragment. This places all boot files next to each other on the disk to allow for faster booting.
By default this option is enabled,but on some systems it is not, so below is the information on how to turn it on:
Go to Start Menu and Click RunType in regedit then click okFind "HKEY_LOCAL_MACHINESOFTWAREMicrosoftDfrgBootOpt imizeFunction" Select "Enable" from the list on the rightRight on it and select "Modify"Change the value to Y . Reboot your Pc and see the change yourself.

How to add Details tag in HTML5

The details tag allows you to add extra information that can be viewed or hidden. For example, take a look at the image below:

The details tag in a browser

When a user clicks the above message, the following information is revealed:

The details tag expanded when clicked on

Clicking the summary will hide the above message.
The Details tag is used like this:

<DETAILS>

<SUMMARY>Click here for further information</ SUMMARY >

<P>
Further information is revealed when a user clicks the summary
<BR>
Click the summary again to hide this message.

</ DETAILS >
In between two Details tags, you add a pair of Summary tags. The summary is the part that is shown to the user. Details can then be added below the Summary tags.

Sadly, only the Chrome browser supports the Details tag at the time of writing. Browsers that don't support the Details tag will simply display the whole of the information you added between the two tags, including the summary.

How to add Audio in HTML5

If you only want sound, and no video, then the new AUDIO tag is the one to use. The HTML is similar to the VIDEO tags, in that you specify a list of audio file formats. For example, take a look at the following code:

<AUDIO>

<SOURCE SRC="your_audio.mp3">
<SOURCE SRC="your_audio.ogg">
<SOURCE SRC="your_audio.wav">

</AUDIO>

Between the two AUDIO tags we have three SOURCE tags like before. This time, however, you don't need any codec information. The browser will try to play the first song on the list above. If the format is not supported, then it will try to play the second song.

You can add some attributes to the AUDIO tag:

AUTOPLAY
LOOP
CONTROLS
PRELOAD

AUTOPLAY takes the value true or false. Setting AUTOPLAY to true means the song would start playing by itself in the browser, which can be annoying. LOOP means that the song will start all over again after it has finished. Again, the values true and false can be used. Using the CONTROLS attribute with a value of true will get you the browser's in-built audio controls. They look like this in Internet Explorer 9:

Audio controls in a browser

The PRELOAD attribute takes three values: none, auto, and metadata. PRELOAD refers to the audio file itself. When you set it to none the browser won't preload the file at all. Set it to auto and the browser will decide for you, whereas a setting of metadata will load things like song title, album, artist, etc.

Here's an example of the AUDIO attributes:

<AUDIO AUTOPLAY ="false" LOOP="false" CONTROLS="true" PRELOAD="auto">

<SOURCE SRC="your_audio.mp3">
<SOURCE SRC="your_audio.ogg">
<SOURCE SRC="your_audio.wav">

</AUDIO>

If you tried the above code in Firefox then the Ogg file format would play, because Firefox doesn't support the MP3 format, due to licensing issues.

For browsers that don't support the AUDIO tag at all, then you can add some text to the above code:

<AUDIO AUTOPLAY ="false" LOOP="false" CONTROLS="true" PRELOAD="auto">

<SOURCE SRC="your_audio.mp3">
<SOURCE SRC="your_audio.ogg">
<SOURCE SRC="your_audio.wav">
YOUR BROWSER DOESN'T SUPPORT THE AUDIO TAG.

</AUDIO>

The point about the AUDIO and VIDEO tags, however, is that they work in the browser and don't need the end-user to download any third-party plugins.

Saturday, 23 June 2012

How to add Video in HTML5

HTML5 introduced a new tag for videos. To insert a video into your web page you can now do this:

<VIDEO SRC="your_video.mp4"></VIDEO>

This simplifies things greatly, as previously you had to use the OBJECT and PARAM tags. Even with a YouTube video that code would look messy:

<object width="" height="">
<param name="movie" value="http://www.youtube.com/v/your_ref"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/your_ref_here" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="" height=""></embed>
</object>

However, Google does produce the code for you, and all you need to do is copy and paste it.

Another alternative for video is Flash. Unfortunately, not all browsers support Flash (Apple's Safari in particular.) Even for those that do, you need a plugin to watch the video.

So the VIDEO tag in HTML5 was meant to allow all browsers to display your videos. At the time of writing, though, different browsers support different video formats. Older browsers won't recognize the VIDEO tag at all. With those caveats in place, let's take a further look at the video tag.

 

Video Formats and Codecs


The most popular video formats are MP4 (MPEG4), FLV (Flash), OGG and AVI. A newer format is WebM. But these file endings, .mp4, .flv, .ogv, .avi, and WebM, are not actually a single file. They are known as container files. That's because a video is a combination of separate files, such as the video itself and sound tracks. There will also be files for synchronising the video with the sound, the aspect ratio, the language, video title, and a whole lot more.

The moving images part of the video will be encoded using programming code known as an algorithm. This algorithm is called the video codec. A video player decodes this algorithm (codec) and displays the moving images on your screen. There are quite a lot of video codecs out there, but the most popular are H.264, Theora, and Google's VP8.

As well as video codecs there are also separate audio codecs. The audio codec that just about everybody has heard of is MP3 (short for MPEG 1, Audio Layer 3). Others are Apple's AAC, and Vorbis.

(It must be pointed out that MP4 and MP3 are patent protected. You are usually allowed to produce video and audio files in these formats because a vendor (Microsoft, Apple, etc) has already paid for the right to use the encoder and decoder software.)

With all these different video and audio combinations, you won't be surprised to learn that browser support is patchy. For example, if you wanted to show a Flash video then people who have Macs, iPhones, and iPads won't be able to see it.

Browser patchiness is the reason why the new VIDEO tag takes a sub-tag called SOURCE. The SOURCE sub-tag lets you specify more than one container format. Take a look at this example:

<VIDEO>

<SOURCE SRC="my_video.mp4" TYPE='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<SOURCE SRC="my_video.webm" TYPE='video/webm; codecs="vp8, vorbis"'>
<SOURCE SRC="my_video.ogv" TYPE='video/ogg; codecs="theora, vorbis"'>

</VIDEO>

The VIDEO tag is now by itself. Between the two VIDEO tags, however, we have three SOURCE tags. After the word SOURCE you need a SRC attribute. This is the name and location of your video. Notice that the MP4 format comes first. This is to cater to your iPad users. If it's not top of the list then iPad just bails out - it only recognises one SOURCE tag. Newer version of the iPad may well correct this bug.

Notice the TYPE attribute above, though. It is split in to three parts:

TYPE='video/mp4; codecs="avc1.42E01E, mp4a.40.2" '

You need the type of video it is (video/mp4, in this case). After a semi colon you then specify the codecs. The video codec comes first, followed by the audio codec. The two are separated by a comma. The quotation marks are need. The TYPE above is surrounded by single quotes, one at the start and one at the end. The codecs need their own quote marks, which are double quotes above. You can do it the other way round, though:

TYPE="video/mp4; codecs='avc1.42E01E, mp4a.40.2' "

In the line above double quotes are on the outside and single quotes on the inside.

Video can be a very complicated subject. If you don't want to go to all the trouble, then YouTube can convert your videos and provide the code to copy and paste into your web page.

How to add Data List in HTML5 Forms

Another type of list you can use is a Data List. This is new in HTML5. The Data List is like a drop down list of options, only the dropdown part doesn't appear until you start typing. The items on your list then appear, allowing the user to select an item. It is only supported in Firefox and Opera, at the time of writing. Here's what it looks like before you start typing:

An HTML 5 data list

So it looks like just a normal text box.

However, when you click inside of the text box and type a letter, you'll see this in Firefox:

An HTML 5 data list expanded

The items on your list will appear.

When you select an item, you change the value:

A selected data list item

The HTML5 code for the above Data List is this:

<INPUT TYPE="Text" LIST="zip_codes">

<DATALIST ID="zip_codes">

<OPTION VALUE="AL" LABEL="ALABAMA">
<OPTION VALUE="AK" LABEL="ALASKA">
<OPTION VALUE="AS" LABEL="AMERICAN SAMOA">
<OPTION VALUE="AZ" LABEL="ARIZONA">
<OPTION VALUE="AR" LABEL="ARKANSAS">
<OPTION VALUE="CA" LABEL="CALIFORNIA">
<OPTION VALUE="CO" LABEL="COLORADO">
<OPTION VALUE="CT" LABEL="CONNECTICUT">

</DATALIST>

You still have an INPUT TYPE. This one is Text. Notice the LIST attribute, though. You need this to match the ID of the DATALIST tag.

DATALIST comes after the INPUT code, and has a closing DATLIST tag. For each item on your list you have a VALUE and a LABEL. The LABEL is the text that appears on the list. The VALUE is what it changes to when an item is selected. It is also the value that gets sent when the form is processed.

Note that in the Opera browser, you'll see this as soon as you click inside of the Data List:

A data list

So the VALUE and LABEL are displayed, which could be helpful.

What is not helpful is Safari's treatment of Data Lists - everything after your Data List tags will be hidden. So if you have a Submit button after a Data List, Safari users won't see it! One workaround is to put an end tag for all your OPTIONS:

<OPTION VALUE="AL" LABEL="ALABAMA"></OPTION>

The Submit button will then reappear. The Data List won't, though.

And that's it for HTML5 form elements. Try them out in different browsers, and see what works and what doesn't. Don't forget to add some CSS to liven up your form elements!

How to add Color Picker in HTML5 Forms

Another form element you can add is a Colour Picker. This will be of limited use, and only the Opera browser has implement it. The HTML code is this:

<INPUT TYPE="Color">

In the browser, it looks like this:

An HTML 5 color picker

Again, it will just end up as a plain text box, if a browser doesn't support it.

How to add Date and Time Selector box in HTML5 Forms

You can have a calendar appear when a user clicks inside of a text box. Unfortunately, only the Opera browser does this. Here's what it looks like:

An HTML 5 popup calendar

Being able to select a date like this is a terrific innovation that hopefully other browsers will implement in the future. The HTML for the above calendar is this:

<INPUT TYPE="date" value="">

The TYPE is "Date", but you can have other TYPES:

TYPE="Date"
TYPE="Month"
TYPE="Week"
TYPE="Time"
TYPE="Datetime"
TYPE="Datetime-local"

All the other browsers will just show you a blank text box in place of the TYPEs above.

How to add Spinners and Sliders in HTML5 Forms

Two other HTML5 controls you can add to forms are spinners and sliders. Sadly, though, only Opera and Chrome support the spinner. A spinner allows you to increase or decrease a number in a box by clicking little up and down arrows. They look like this in the Opera browser:

An HTML 5 spin box

The HTML code for the spinner box looks like this:

<INPUT TYPE="NUMBER" MIN="0" MAX="10" STEP="2" VALUE="6" SIZE="6">

The TYPE is "Number". The MIN and MAX are the start and end values you want for the box. In other words, a user can't go higher than 10 or lower than 0. The STEP attribute is the increase or decrease in value when you click on the arrows. In our code above, we go up in steps of 2 (2, 4, 6, 8, 10). The VALUE is the default that appears in the box when the page loads, and also the value that is returned when the form is sent. SIZE refers to how wide you want the box.

Sliders work in the Opera, Chrome and Safari browsers. They look like this:

An HTML 5 slider

You can move the slider left or right to change the value. The HTML code is this:

<INPUT TYPE="RANGE" MIN="0" MAX="10" STEP="2" VALUE="4">

The TYPE is "Range". The other attributes are the same as for the spin box.

How to add Search box in HTML5 Form

The search box, despite its name, doesn't actually search for anything. All it does is to put an X on the right hand side of a text box. You click on the X and the text in the text box disappears. It's for when you make a mistake and want to start again. The search box only works in Chrome and Safari, at the time of writing. The HTML code is this:

SEARCH: <INPUT TYPE="Search">

In Safari on a windows machine, you'll see this when you type in the text box:

An HTML 5 search box

For OS X users the above box will have rounded corners. Browsers that don't support the search box are just normal text boxes without the X. So you can TYPE="Search" instead of TYPE="Text", if you like. At least your Chrome and Safari users will be happy!

How to add URL text box in HTML5 Form

A URL is a website address, usually with http:// at the front of www. HTML 5 introduced a text box for a URL. Here is the code to try. Notice the type is now URL:

<FORM>

<INPUT TYPE="URL" PLACEHOLDER="Enter a website">

<P>
<INPUT TYPE="Submit" VALUE="Submit">

</FORM>

At the time of writing, only Firefox and Chrome support the URL text box, popping up a message when you don't type the full address (complete with http:// at the front).

How to add Email text box in HTML5 Form

HTML5 introduces an email text box. This text box checks for a valid email address. Instead of TYPE="Text" you use TYPE="Email". Here's the code to try:

<FORM>

<INPUT TYPE="Email" PLACEHOLDER="Enter your email address">

<P>
<INPUT TYPE="Submit" VALUE="Submit">

</FORM>

An older browser that doesn't recognise TYPE="Email" will just display a normal text box. So you may as well use the new email TYPE right now, if you need to.

Again, though, browser support is patchy. Only Google Chrome and Firefox support the Email text box. Even then, Firefox lets meme@memecom through, when it should be .com on the end. (Chrome picks this error up and doesn't submit the form.)

How to add Required attribute in HTML5 Forms

If you want a text box to be filled in, you can use the REQUIRED attribute:

<FORM>

<INPUT TYPE="Text" PLACEHOLDER="Enter your first name" REQUIRED>

<P>
<INPUT TYPE="Submit" VALUE="Contact Us">

</FORM>

 

You just type the word REQUIRED, with no equal sign or text after it.

Test it out in your browser. Don't click inside of your text box, but just click your submit button. In the latest editions of Firefox, you should see something like this:

The Required attribute on a text box

In Google's Chrome, you'll see this:

The HTML 5 Required attribute in action

So the browser has not submitted the form, but displayed a popup box asking the user to fill out the text box. Opera, Internet Explorer and Safari don't recognize the REQUIRED attribute, however, and just submit the form. So you shouldn't rely on it. Internet Explorer versions 9 and lower don't even recognise the PLACEHOLDER attribute, the only one of the big five browsers not to do so!

How to add PLACEHOLDER attribute in HTML5 Forms

There's quite a neat new attribute you can add to your text boxes called PLACEHOLDER. This is default text that disappears when you click inside a text box. Try the following:

<FORM>

<INPUT TYPE="Text" PLACEHOLDER="Enter your first name">

<P>
<INPUT TYPE="Submit" VALUE="Contact Us">

</FORM>

The word PLACEHOLDER does not have to be in capitals, as like just about every HTML element it is not case sensitive. After an equal sign, you type the text you want to appear in your text box, surrounded by quotation marks.

Save your work and test the form out in a browser (preferably Opera). When the form first loads you'll see this:

The Placeholder attribute of a A HTML 5 form

Click inside the text box and the placeholder text immediately disappears:

The Placeholder attribute on a text box

The PLACEHOLDER attribute works on all the new text boxes you are about to see. If your user has an older browser they either won't see the placeholder text at all, or it just won't disappear when they click inside the box.

How to add Hidden Element in a Form

You can have something called a Hidden Element on your form. Hidden elements are for your benefit, not your users. You can store information in a hidden element, and then pass the information to a second web page or form.

The Code for a hidden element is this:

<INPUT TYPE="Hidden" NAME="H1" VALUE="Some value">

As the name of the element implies, any data stored in the VALUE attribute does not show up on the page. However, if a viewer clicks View > Source in a browser, your code can be seen, and that includes any values you've hard-coded into the Value attribute of the Hidden element. So you wouldn't use the Hidden element to store sensitive data.

How to create Password box in HTML Forms

You can add a password box to your form. This is identical to a text box in its appearance. The only difference is that when you type in the box the characters are replaced by asterisks ( * ). It's important to remember that although a password box hides the text from prying eyes, the data is not encrypted in any way. If you use METHOD=Get instead of Post, the password would show up in the address line of the browser.

The code for a password box is this:

<INPUT TYPE="Password" SIZE="20" MAXLENGTH="8">

The MAXLEGTH attribute is the maximum number of characters that can be entered into the password text box. SIZE is how wide you want the password box to be.

How to add List boxes to the HTML Forms

You can have a list box of items on your forms, either in a drop down format or as a fixed list. Here's what the two look like on a web page:

A HTML form showing two list boxes

The HTML code for a dropdown list, the default, is this:

<SELECT>

<OPTION Value="Under 16">Under 16</OPTION>
<OPTION Value="16 to 25">16 to 25</OPTION>
<OPTION Value="26 to 40">26 to 40</OPTION>
<OPTION Value="40 to 60">40 to 60</OPTION>
<OPTION Value="Over 60">Over 60</OPTION>

</SELECT>

List boxes are called Select boxes in HTML and use the <SELECT> tag to set them up.

Each item in your list needs an OPTION tag.

<OPTION Value="Under 16">Under 16</OPTION>

You don't need the closing OPTION tag, if you don't want it, but it is here for the sake of neatness. The text you want to appear in the list, the text that people see and click on, goes after the first right pointy bracket (>). The Value is not strictly needed, either. When the form is submitted, the option the user selected will be returned to you. If the Value attribute is missing, the text itself will be returned.

If you want one of the items in your list selected by default, just choose the item and add SELECTED as an attribute. Like this:

<OPTION Value="Under 16" SELECTED>Under 16

The only difference between the drop down list and the Fixed list is one attribute in the <SELECT> tag: SIZE.

<SELECT SIZE="5">

The SIZE is the number of item in your list. If you add this attribute, you'll get a Fixed list instead of a drop down list.

If you want your users to be able to choose more than one item from the list, the attribute to add to the SELECT tag is MULTIPLE

<SELECT SIZE="5" MULTIPLE>

A user can then hold down the CTRL key and click to select more than one item.

You can add CSS styles to your list boxes, of course. Here's a style that sets font properties using the HTML selector:

SELECT {

font-family: Arial, Helvetica, sans-serif;
font-size: 18px;

}

Now everything with the HTML SELECT tag will have its font and font size changed.

How to add Check boxes to the HTML Forms

Check boxes are used to give your users the opportunity to select more than one option from a range of options. With the Radio Buttons, you could only select one item; with check boxes, you can select them all.

The HTML for check boxes looks like this:

<INPUT TYPE="Checkbox" Name="Browser" Value ="Firefox">Firefox
<INPUT TYPE="Checkbox" Name= "Browser" Value ="Opera ">Opera

Again, you can add a label to aid in selection:

<LABEL FOR="C1">Firefox</LABEL>
<INPUT TYPE="Checkbox" Name="Browser" ID="C1" Value="Firefox">

<LABEL FOR="C2"> Opera </LABEL>
<INPUT TYPE="Checkbox" Name="Browser" ID="C2" Value="Opera">

Check boxes and Radio buttons work in a similar way, and the HTML code is similar, too. The same points made about Radio buttons apply to check boxes. Note the TYPE used, though: Checkbox.

The above code for option buttons and checkboxes would look like this in the browser:

A HTML form showing radio buttons and check boxes

How to add option buttons to the form

Option buttons are sometimes called Radio Buttons, and they force the user into choosing only one item in a list, such as a Male/Female option, or selecting a payment method.

The Option button HTML look like this:

<INPUT TYPE="Radio" Name="Gender" Value="Male">Male
<INPUT TYPE="Radio" Name="Gender" Value="Female">Female

After typing the INPUT tag, the word TYPE comes next. For Option Buttons, the type is "Radio". The NAME is definitely needed here, and note that the NAME for both in our code above is "Gender". You use the same name for each group of option buttons you are adding to your form. So if you wanted payment option buttons, the code might be this:

<INPUT TYPE="Radio" Name="payment" Value="CC">Credit Card
<INPUT TYPE="Radio" Name="payment" Value="DC">Debit Card
<INPUT TYPE="Radio" Name="payment" Value="PP">PayPal

This time, each radio button has the name "payment". The reason you keep the same name for each group of option buttons is simply to distinguish one group of option buttons from another.

The VALUE attribute is quite useful. When the user submits the form to you using the Submit button, these VALUES are going to be returned. If you've just got Radio1 and Radio2, you won't know (or won't remember, more likely) which option the user has selected. Manipulating values with scripts is also a lot easier if the Value is the same as the text the user sees.

If you want to have a default option button selected, use the word "Checked":

<INPUT TYPE="Radio" Name="payment" Value="CC">Credit Card
<INPUT TYPE="Radio" Name="payment" Value="DC">Debit Card
<INPUT TYPE="Radio" Name="payment" Value="PP" Checked>PayPal

Attaching a label to each button is very useful for your visitors. When the label is clicked it will select the option button it is named for:

<LABEL FOR="R1">Male</LABEL>
<INPUT TYPE="Radio" Name="Gender" ID="R1" Value="Male">

<LABEL FOR="R2">Female</LABEL>
<INPUT TYPE="Radio" Name="Gender" ID="R2" Value="Female">

In the code above, the labels are FOR the form elements called R1 and R2. We have added a corresponding ID to each option button. Notice, too, that we've deleted the text from after the > of each option button. The "Male" and "Female" text is now between the two label tags.

How to add labels and text area to the form

Labels


You can add labels to your form, and attach them to a specific text box or other form element. They are good when you have small elements like check boxes, as you can click on the label to select the check box.

To add a label a pair of LABEL tags are used:

<LABEL>Label Text Here</LABEL>

The text you want to go on the label goes between the two tags.

To attach a label to a particular form element the FOR attribute is used, followed by the ID of the form element you want to attach it to. For example, examine the code below:

<LABEL FOR="tb1">First Name: </LABEL>
<INPUT ID="tb1" TYPE="Text" Value="Enter your first name" NAME="textBox1">

In the code above, the LABEL is FOR a form element with the ID "tb1". Here's what it looks like in the

A HTML form showing a label and text box

In the image above, we have clicked on the label. This highlights the text in the text box. A user can then just type a first name, without having to click inside of the text box. The label does this because it knows which text box it is "FOR".

 

TEXTAREA


If you want a bigger text box, for people to leave comments for example, then you can use the TEXTAREA tag.

Textarea doesn't use the INPUT tag. And you need an end Textarea tag, as well. After typing a space, you specify how big your Textarea is going to be. You do this with the ROWS and COLS attributes. The Height equates to Rows, and the Width to Cols (not Columns):

<TEXTAREA ROWS="7" COLS="30" NAME="TextArea1" ID="TA1">

</TEXTAREA>

If you want some default text to appear in the Textarea then you can type it between the two tags:

<TEXTAREA ROWS="7" COLS="30" NAME="TextArea1" ID="TA1">
Default text area
</TEXTAREA>

The text area above would then look like this in Firefox version 4 and later:

A HTML form showing a textarea

Notice the little triangle in the bottom right. Hold your mouse down over the triangle and you can drag to resize it. (Only Firefox has this, at the time of writing.)

You can also attach a label to the Textarea. You do it in exactly the same way as for text boxes:

<LABEL FOR="TA1">Comments:</LABEL>
<TEXTAREA ROWS="7" COLS="30" NAME="TextArea1" ID="TA1">
Default text area
</TEXTAREA>

Friday, 22 June 2012

How to format text box of the form by using CSS

You can use some CSS to format your text boxes. Add the following LINK to the HEAD section of your HTML code:

<LINK REL=Stylesheet TYPE ="text/css" HREF="../css/forms_1.css">

Create a new CSS page and save it to the correct folder. For the file name type forms_1.css. We saved our HTML page in a folder called pages. We have a CSS folder that is one folder up from this, and so saved our CSS file there. That's why our HREF reads "../css/forms_1.css". This means, "Move one folder up from where the HTML page is, and look for a folder called css. Then use the CSS script called forms_1.css."

For the CSS, type the following:

CSS to format a text box

You now need to amend your text box code slightly. Change it to this:

<INPUT ID="tb1" TYPE="Text" Value="Enter your first name">

The first line of the CSS code sets the style for an INPUT with the ID tb1. That's why we've added an ID attribute with that name to the code.

The SIZE attribute has been removed because we're setting the size of the text box using CSS:

Height: 30px;
Width: 300px;

You can leave the SIZE attribute in, though, if you like - it won't affect the results.

The other four CSS properties for the text box set the background colour, the font family and size, and the text colour.

We've also added two pseudo classes for the INPUT elements. The first one is focus. When you click inside the text box the border changes colour. Adding visual cues like this helps users when filling out your forms.

The other pseudo class is for the invalid event. You'll see how this works when we get to the HTML5 form elements. But it will put a red border around an INPUT if the user has made a mistake.

Refresh the web page in your browser. With the new CSS styles applied, it should look like this:

A text box formatted with CSS

When you click inside of the text box, it will look like this:

CSS puts a highlight around a text box

With just a few CSS styles, then, you can really improve the appearance of your form elements.

 

JavaScript Alert Boxes


So that you can see that something is actually happening here, we can add some simple JavaScript to get at our form values.

Add a NAME attribute to your text box code, highlighted in bold below:

<INPUT ID="tb1" TYPE="Text" Value="Enter your first name" NAME="textBox1">

Once a form element has a NAME attribute you can refer to it in code. (You can also use a form's ID attribute in code.)

The form itself needs a NAME attribute as well. So add this to your FORM tag:

<FORM NAME="frmOne">

So we've given the form the NAME frmOne.

For your form button, amend the code to this:

<INPUT TYPE="Button" Value="Submit" onClick="textBoxValue( )">

Notice that the TYPE is now "Button" instead of "Submit". This allows you to write your own submit code, which you'd want to do to check that form values have been filled in correctly.

The part that's going to do all the action, though, is this:

onClick="textBoxValue( )"

onClick is something called an event. It just means when the button is clicked perform some action. The action for us is a piece of code we're going to add in the HEAD section. We've called this piece of code textBoxValue( ).

In the HEAD section of your HTML code, add the following JavaScript:

<SCRIPT>

function textBoxValue() {

alert( document.frmOne.tb1.value );

}

</SCRIPT>

Your HTML code should now look like this:

Javascript code for an alert box

All this script does is to display a popup alert box. The text between the round brackets of alert is this:

document.frmOne.textBox1.value

It starts with the word document, which refers to the current web page displayed in your browser window. You next type the name of the form (frmOne), followed by the name of the form element (textBox1). Finally, you type the attribute you're trying to access. For us, this is the VALUE that is typed into the text box called textBox1.

Save your work, and refresh the page in your browser. Click your new button (which will look exactly like the old one). Whatever you have in the text box should appear in an alert box. Here are the results in Internet Explorer:

A javascript alert box displaying the contents of a text box

The Firefox web browser displays the following alert box:

A javascript alert box displaying the contents of a text box