*
The moose likes HTML, CSS and JavaScript and the fly likes JavaScript Code Help Required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JavaScript Code Help Required" Watch "JavaScript Code Help Required" New topic
Author

JavaScript Code Help Required

V K Gupta
Ranch Hand

Joined: Aug 07, 2008
Posts: 55
1 window.onload = function()
2 {
3 var browser=navigator.appName; // browser name
4 var b_version=navigator.appVersion; //browser version
5 var version=parseFloat(b_version); //
6 if(browser == "Microsoft Internet Explorer")
7 {
8 $('registerU').href='/userpackage/index.action'; // What is happening Here
9 $('fogotPass').href='/userpackage/forgetPassword.action'; // What is happening Here
10 }
11 }

Please explain me what does Line no 8 and 9 do.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
It sets the href for two links on the page.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

It might help if you let us know which library you are using. I'd guess Prototype?

Also, please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a title of "JavaScript Code Help Required" in a forum completely dedicated to questions on JavaScript isn't very helpful.

Please go back and change your post to add a more meaningful subject by clicking the

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaScript Code Help Required
 
Similar Threads
Not able to apply decode function to my query
How to extract columns of coordinate values from text file (in java) ?
Local Inner Class
Sequencing Records
""""THIS"""""