Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can JavaScript be used to personalize or tailor a Web site to fit individual user
JavaScript allows a Web page to perform "if-then" kinds of decisions based on browser version, operating system, user input, and, in more recent browsers, details about the screen size in which the browser is running. While a server CGI program can make some of those same kinds of decisions, not everyone has access to or the expertise to create CGI programs. For example, an experienced CGI programmer can examine information about the browser whenever a request for a page is made; thus a server so equipped might serve up one page for Navigator users and a different page for Internet Explorer users. Beyond browser and operating system version, a CGI program can't know more about the environment. But a JavaScript-enhanced page can instruct the browser to render only certain content based on the browser, operating system, and even the screen size.

Scripting can even go further if the page author desires. For example, the author may include a preference screen that lets the user determine the desired background and text color combination. A script can save this information on the client in a well-regulated local file called a cookie. The next time the user comes to the site, scripts in its pages look to the cookie info and render the page in the color combination selected previously. The server is none the wiser, nor does it have to store any visitor-specific information.

Hair Building Fiber

Possibly Related Threads...
Thread Author Replies Views Last Post
  what is the best web design inspiration site thehotskills 1 34 01-16-2018, 07:47 PM
Last Post: Jesssmart
  What is called as negative infinity in JavaScript? sulbha 9 130 10-16-2017, 10:54 PM
Last Post: touchstone
  What are all the types of Pop up boxes available in JavaScript? sulbha 1 20 10-05-2017, 07:45 PM
Last Post: Martinricky
  New ways to rank website in 2017 by designing user friendly websites..? Amit Chauhan 0 35 08-01-2017, 06:12 PM
Last Post: Amit Chauhan
  How to Open Popup using javascript tonnygrand 2 104 01-17-2017, 01:33 AM
  Planning A Website Launch – Things To Understand About Web Development & Web Designin minddigital10 1 75 11-07-2016, 09:21 PM
Last Post: greenharry419
  Client-side JavaScript being.chinmay 0 70 09-19-2016, 09:34 PM
Last Post: being.chinmay
  MAKE YOUR HOUSTON WEB DESIGN MORE USER-FRIENDLY Nasreen Langa 0 98 08-17-2016, 12:29 AM
Last Post: Nasreen Langa
  what is bind() method in javascript? Brianvoges 3 238 03-14-2016, 12:11 AM
Last Post: har.sinha
  What can javascript programs do? being.chinmay 0 94 02-08-2016, 10:13 PM
Last Post: being.chinmay

Forum Jump:

Users browsing this thread: 1 Guest(s)