I have a report which has id as hyperlink.when i click the
id it should move to next report which displays the
corresponding details.tell me how to get the value of
hyperlink(which id is clicked) dynamically using javascript?
so that i can make condition on my second report?

Answer Posted / hanuman prasad

write some function in Onclick="myfunction(Hyperlink)"
like

<a href="#",onclick="myfunction(click1)">click1</a>

in javascrpt function u can decide which is the hyper lick
uer presently clicked on..



Cheersssssssss

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are DOM utilized in JavaScript?

677


How do you sort in javascript?

518


Why jquery is used instead of javascript?

443


What are the different types of errors in javascript?

483


Public Static Void Main(String args[]) { System.out.in("Hai.."); } In the above code why string args[] is required.... If we are not giving command line argument..

1603






Can you assign a anonymous function to a variable?

530


What are different types of inheritence? Which inheritance is followed in javascript.

441


Is javascript enabled on my computer?

462


What will happen if an infinite while loop is run in Javascript?

507


What is the purpose of 'this' operator in JavaScript?

607


How to test 404 page in QA

2018


20 Functions of Selenium with description and Examples.

2330


What is triple dot in javascript?

512


What does the instanceof operator do?

526


What does unshift() function do in Javascript?

706