• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Q&A

Q1: What if my page requires a particular plug-in? Is there a way to detect that with JavaScript?
A1: Yes, the navigator object includes properties for detecting plug-ins. These are described in Hour 16, “Working with Sounds and Plug-Ins.” However, this method doesn't work in Internet Explorer.
Q2:Can I detect the user's email address using the navigator object or another technique?
A2: No, there is no reliable way to detect users' email addresses using JavaScript. (If there was, you would get hundreds of advertisements in your mailbox every day from companies that detected your address as you browsed their pages.) You can use a signed script to obtain the user's email address, but this requires the user's permission and only works in some versions of Netscape.
Q3:Do I need to worry about browsers besides Netscape and Internet Explorer, since they don't support JavaScript anyway?
A3: Actually, there is a Windows browser called Opera that supports JavaScript, and you never know when a new browser may come out. It's always best to support all of them if you can. To learn more about Opera, visit its Web page at www.operasoftware.com.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint