JavaScript Miscellaneous FAQ
You are here: irt.org | FAQ | JavaScript | Miscellaneous
- FAQ 17 Where are the official online JavaScript documents?
- FAQ 20 Can I have a counter without the need for CGI or counter providers?
- FAQ 21 Can I detect the language set in user's browser?
- FAQ 22 How do you debug JavaScript?
- FAQ 43 How do I detect the browser the user is using?
- FAQ 62 How do I code if-else-if?
- FAQ 92 How is the "return" reserved word used?
- FAQ 93 How can I redirect a visitor to separate pages, keeping the domain name they came in with based on the referrer?
- FAQ 97 How can I do a multiple choice quiz?
- FAQ 105 I see on you web page that you can download you site for viewing later. Could you tell me how I would set up similar for part of my web site?
- FAQ 106 Looking for a good simple JavaScript counter?
- FAQ 115 Do you know how I can detect the users choice in the "preferred language", in Netscape Communicators preferences?
- FAQ 125 How do I pre-load a page?
- FAQ 140 Is there a way of telling which language the users browser is using?
- FAQ 155 What does "return false" do? When is it necessary? When is it not?
- FAQ 160 Can you access global variables (such as MyName) from a different page than where it is held?
- FAQ 178 How can I use the void method without causing problems in browsers that do not support it?
- FAQ 181 How can I make a new variable with a name based on the value of another variable?
- FAQ 210 I keep receiving function undefined in the following script, why?
- FAQ 233 Is it possible to trap control key presses?
- FAQ 234 How can I trap errors?
- FAQ 239 How can I check if the browser is Opera and which version?
- FAQ 257 How can I detect when a visitor is leaving my site?
- FAQ 259 Is is possible to trap Shift and/or Ctrl key sequences?
- FAQ 277 How do I capture what the user entered when using prompt()?
- FAQ 283 Can I access the browsers find and copy controls?
- FAQ 321 Can I retrieve information in a META tag?
- FAQ 329 When trying to access information from a page from another server I get "access disallowed", how can I get around this?
- FAQ 351 How can I detect a Mac computer and use a larger font?
- FAQ 395 Is there any way to clear the users cache before they begin to load my page?
- FAQ 402 Is there a way to invoke a function when a certain button (specifically the left or right arrow key) is pressed?
- FAQ 482 Is there any way to detect plugins?
- FAQ 507 How can I capture and handle all "click" events in a document?
- FAQ 530 My variable 'dir' doesn't work in Internet Explorer 4, aren't browser vendors supposed to follow some sort of standard?
- FAQ 536 How does a function know which object called it?
- FAQ 544 Can I embed my own font in a page?
- FAQ 580 How can I detect when a page hasn't loaded within, say, 30 seconds?
- FAQ 604 Is there a way to save/retain the values of global variables when the user resizes their web browser?
- FAQ 639 Can I create an 'on error resume next'?
- FAQ 643 How can I display a variable in my HTML page, is the answer &{script-statements};?
- FAQ 644 Is it possible to just have the title in Netscape Navigator without 'Netscape:' in front, like in Microsoft Internet Explorer?
- FAQ 675 How do you get out of a loop once a certain condition is met?
- FAQ 704 What is the difference between plug-ins on Netscape Navigator and Active-X components on Microsoft Internet Explorer?
- FAQ 705 Where have all the JavaScript error messages gone in Netscape Navigator 4.5?
- FAQ 742 How can I change the title or caption of an alert or confirm box?
- FAQ 772 When coding if-else-if conditions, do I have to include the braces?
- FAQ 778 How can I test to see if a variable has been assigned a value/declared?
- FAQ 833 Can you create a line break in a confirm dialogue box so that box width is less?
- FAQ 835 How do I detect browsers and load different pages according to the browser (Netscape v Explorer)?
- FAQ 860 How do I capture the results from a CGI script?
- FAQ 873 Where can I find out about the methods isPlainHostName(), dnsDomainIs(), localHostOrDomainIs(), isResolvable(), isInNet(), dnsResolve(), myIpAddress(), dnsDomainLevels(), shExpMatch() that the proxy Auto-config file in Netscape uses?
- FAQ 896 Can I make the browser go to the users homepage?
- FAQ 899 How can I find out the Operating System of the client?
- FAQ 950 Is it possible to change the value of preferences in Netscape Communicator?
- FAQ 958 How can I export and import functions, objects and properties?
- FAQ 1010 Can I find out how large a users cache is?
- FAQ 1030 How can I use a different Cascading Style Sheet for the Mac and Windows?
- FAQ 1036 How can I calculate the processor speed of the users browser?
- FAQ 1042 How can I distinguish between MAC and WinNT?
- FAQ 1044 How do I direct the browser to an anchor on a dynamically generated page from within that dynamically generated page?
- FAQ 1112 How do I type in a product code (i.e jaw1024) and return the price for that product in another text box, then enter a quantity in a text box and return a total price based on quantity?
- FAQ 1125 Is it possible for Javascript to do DNS lookups?
- FAQ 1126 How can you find out if a browser has support for 128-bit encryption?
- FAQ 1150 How can I find out how fast someones computer is?
- FAQ 1162 How can I avoid the "Data Missing, please hit reload" screen in Netscape when resizing a page that is produced from POSTed form?
- FAQ 1164 Since CD-ROM drives may be on different drives on different computers, can I use Javascript to find the CD-ROM drive?
- FAQ 1168 How can I set the cache expiration date on an HTML file to, say, midnight of the day the page is first served?
- FAQ 1198 How can I check with the user that they really do want to leave my page?
- FAQ 1206 How can I accesss the CGI variable REMOTE_USER from JavaScript?
- FAQ 1221 How can I validate a post code/zip code with an itermidiate page that states whether it is valid or not?
- FAQ 1238 Using JavaScript how can I force the browser to reload the current page every second from the server?
- FAQ 1273 How do you managed to create an icon in the Microsoft Internet Explorer favourites directory?
- FAQ 1278 How can I add an image to a favourite when someone bookmarks my site?
- FAQ 1331 What does "indexOf" do?
- FAQ 1350 Is there a way to change the default page of the browser through JavaScript?
- FAQ 1355 How can I write debug messages to the Java Console?
- FAQ 1359 How can redirect depending on whether the browser has a QuickTime plug-in?
- FAQ 1361 On some sites I ocassionally get a window that says "JavaScript Error" with a code number. Is this a problem with the WebSite or my computer?
- FAQ 1364 How can I calulate how long it takes to render a page?
- FAQ 1392 Can I access data from one page from one domain from another page from another domain?
- FAQ 1411 How can I filter a client side JavaScript array using regular expressions?
- FAQ 1419 How do I stop pages from being cached in Internet Explorer ?
- FAQ 1516 Is there any way to search a site using Javascript?
- FAQ 1522 How can I disable the back button and prevent other users/hackers from viewing the private pages of the (site/contents) of a user who has logged out?
- FAQ 1531 Is it possible to expire a page using JavaScript with out using tags in the header?
- FAQ 1535 Is it necessary to hide JavaScript code contained in .js source files using the <!-- //--> characters around all the script found in an external file?
- FAQ 1544 How can I provide a translate button to invoke AltaVista's Babel Fish to translate a page from English to French?
- FAQ 1556 How can I ask the user their name and then display it on the page?
- FAQ 1566 When displaying an alert, how can I close the alert box and send the user to a certain page when they click OK?
- FAQ 1567 How can I download a page in the background of another, or preload the images and sound of a page behind another more simple page, then after a pre determined length of time go to the ready assembled page?
- FAQ 1577 How do I detect the browser's color depth and change the background graphic/color accordingly?
- FAQ 1603 How can I use Javascript to stop loading the current page by pressing a button?
- FAQ 1605 How can I supply different values to the location object's replace() method, perhaps based on the current date, by invoking a function?
- FAQ 1607 Can JavaScript reference the meta tag name and values in an HTML document, i.e. author, description, keywords?
- FAQ 1615 Is it possible to detect the browser and use one of two external style sheets?
- FAQ 1616 How do you generate JavaScript from inside JavaScript?
- FAQ 1633 Is it possible to start Internet Explorer with an index.html page loaded fullscreen without toolbars?
- FAQ 1651 Is there any way to detect whether Internet Explorer users have a Flash Plugin?
- FAQ 1768 How can I accesss the CGI variable REMOTE_USER from JavaScript?
- FAQ 1783 Are Pop-Up Windows Legally and Morally Proper?
- FAQ 1794 How to detect the type of connection (modem/cable/router) of a web browser?
- FAQ 1799 do you have any neat tricks to capture the current page's source?
- FAQ 1808 Can I use a scrollbar to change a variable?
©2018 Martin Webb