开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜