开发者

Javascript and href in anchor tags

开发者 https://www.devze.com 2022-12-16 07:00 出处:网络
Can JavaScript see the ta开发者_如何学Pythonrget name of a window that was opened by a regular \"href\".Here is an example:

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

精彩评论

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

关注公众号