Multi functional buttons?
Can you make a button activate two things? I have two separate buttons which I would like to merge into one. One of them launches a progress bar and the other opens a alert box with <script></script>.
. ","answerCount":2,"upvoteCount":0,"suggestedAnswer":[{"@type":"Answer","text":"yes it can do multiple functions\n\n\n\nyou can't add multiple onclick it will overwrite, so the one function set as onclick can have two functions","upvoteCount":2},{"@type":"Answer","text":"Can you show the code? Put the link to code playground maybe?\nYou want the two actions being executed on one click, or you want two distincts zones in one button?\nDid you need to avoid css? I guess JS not, because you talk about 'altert box' and '...\n\nWell, for at least these context/behaviour, the answer is yes: you can ;) \n","upvoteCount":0}]} }
Can you make a button activate two things? I have two separate buttons which I would like to merge into one. One of them launches a progress bar and the other opens a alert box with <script></script>.