Javascript and href in anchor tags
Can JavaScript see the ta开发者_如何学Pythonrget name of a window that was opened by a regular "href". Here is an example:
<a href="http://www.cnn.com" target="_blanknewWindow" name="NewWindowName">
alert(window.name);
will contain the target name.
精彩评论