Redirecting on the same page.

Results 1 to 2 of 2

Thread: Redirecting on the same page.

  1. #1
    Join Date
    Dec 1969

    Default Redirecting on the same page.

    Hi there!<BR> Suppose there are 3 text named A , B, C is writen on a page . If an user click on A then some else thing happen on the same page. Same for B(means some other thing happen) as well as C. <BR> <BR>I wish to know wether the user clicks on A or B or C. How do i find that on which option user click?<BR><BR>WIth Thanks.<BR>Buebrd

  2. #2
    Join Date
    Dec 1969

    Default HUH?

    &#060;A HREF="#" onClick="doSomething(1);"&#062; A &#060;/A&#062;<BR>&#060;A HREF="#" onClick="doSomething(2);"&#062; B &#060;/A&#062;<BR>&#060;A HREF="#" onClick="doSomething(3);"&#062; C &#060;/A&#062;<BR><BR>And then your JavaScript function doSomething() gets an argument that tells which one was clicked.<BR><BR>Is that all you wanted???<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts