Questions tagged «new-window»


3
使用JavaScript在新窗口中打开URL
我正在制作一个“共享按钮”以共享当前页面。我想获取当前页面的URL并在新窗口中打开它。我有当前的URL部分,但似乎无法使下一部分工作。 我在语法上苦苦挣扎。我想将新窗口的大小指定为width=520, height=570。 就像是: <a target="_blank" href="https://www.linkedin.com/cws/share?mini=true&url=[sub]" onclick="this.href = this.href.replace('[sub]',window.location)"> LinkedIn </a> 有任何想法吗?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.