Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JavaScript 能否看到由常规“href”打开的窗口的目标名称。这是一个例子:
<a href="http://www.cnn.com" target="_blanknewWindow" name="NewWindowName">
alert(window.name);
将包含目标名称。