How do you make a javascript “onClick” and an html “a href” merge into one link? I want that when I click on the link the first step is the “onClick” and the second when the “onClick” is successed you redirected with the “a href” to another page.
- First step: onClick=”ajaxrequest(‘/includes/docx/boekenlijst.php’, ‘docgegevens’)
and
- Second step: a href=”/Raymond_converters/docx/example.php”>doc
I hope you can help me but my English is not so good. I’m sorry for that.
Using jQuery, you could try this: