Is their a way to click a button without clicking. For example using a bookmarklet <form> <input type="submit" onclick="window.open(website)"> </form> is their I way to access input. PS. I already know 'document.forms[0].submit()' I want to access the input directly
How about this? <html> <head></head> <body> <button onclick="document.getElementById('submit').click();">Click</button> <input id="submit" type="submit" onclick="window.open()"> </body> </html> Code (markup):