Problems with open twitter message box

I tried use Google console: window.open(“https://twitter.com/intent/tweet”) here is the message I got:“The requested URL /_/chrome/https//twitter.com/intent/tweet was not found on this server. That’s all we know.” please help!

window.open("https://twitter.com/intent/tweet?text=" + $("#quote").html());

Could the ?text make a difference? The $("#quote").html()); is where it was stored on my HTML.