Anchor tag click event without clicking

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pavanip
    New Member
    • Mar 2008
    • 53

    Anchor tag click event without clicking

    Hi,

    I have one web page in that i am using one anchor tag and linking to some other page in Anchor href. Now i want to raise anchor click event automatically in page load without clicking and navigate to that page.
    I want to write anchor tag like this
    <a href="AboutUs.a spx?TB_iframe=t rue&height=500& width=800" class="thickbox ">About us</a>
    But it has to go to Aboutus.aspx page without clicking.
    Is there any way to do that uisng javascript or anything else?please guide me how approach that issue.

    Thanks in advance
    Pavani
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Originally posted by pavanip
    But it has to go to Aboutus.aspx page without clicking.
    why should it do so?

    usually I (or the user) like to choose whether I visit another page or not and I get really pi**** if a website tries to force me a special way.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      If you want to redirect, then make a temporary or permanent redirect using the appropriate headers, e.g. 301, 307.

      Comment

      Working...