Tried to get it done with adding of document.form[0].submit(); and document.getElementsByTagName('button').submit(); but failed. Any help is highly appreciated:)
Your code would have been much more readable if you had formatted and indented it properly. I took the liberty to do it this time, because it was very hard to understand the way it was before.
@m_hutley firstly about the purpose: on the url https://developers.facebook.com/tools/debug/sharing/ is a code debugger. The debugger looks different depending on was an url already ever checked or not. But the submit button of debugger is always the same - this is the form and button i cited in the first post.
What i want to achieve:
Step 1 (already done): to transfer an url of current (any) page into new tab, add it to the debugger url. This part works already with the code part javascript:void(window.open(%27https://developers.facebook.com/tools/debug/sharing/?q=%27+window.location.href,%27_blank%27));
Step 2 (need help): i want start the debugger through submitting the button in the form.
Your code doesn’t work for me
I used it as javascript:void(window.open('https://developers.facebook.com/tools/debug/sharing/?q='+window.location.href,'_blank'));onsubmit='return window.Event && Event.__inlineSubmit && Event.__inlineSubmit(this,event)'
After click on it the content of the current page was replaced with the text return window.Event && Event.__inlineSubmit && Event.__inlineSubmit(this,event), like on screenshot - the page with debugger was remaining as it was, without to start the debugger.