+ 1
How to link using html by giving id in a tag?please tell me.
I am creating a calculator using html and js. It contains three to four different functions and form tag. I want to give link for this 3 to 4 functions which will open in same web page after that. I'll add pre and next to go from home page and on another functions. I tried too many times. .but I fed of trying now ..it's not working at all ... please guide me give me proper sequence of giving anchor tag,id and all for different form and functions.
1 ответ
0
can you give me a more detail about it.
Also you can use onclick event to call js function if you don't want to refresh the page like
<a href="https://example.com/no-js-login" onclick="return jsfunction();">function 1</a>
<script>
jsfunction = function() { // Your code here return false; }
</script>