Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML:实现a元素href URL链接自动刷新或新窗口打开 #69

Open
smileyby opened this issue May 25, 2021 · 0 comments
Open

HTML:实现a元素href URL链接自动刷新或新窗口打开 #69

smileyby opened this issue May 25, 2021 · 0 comments
Labels
HTML 🌴 HTML相关

Comments

@smileyby
Copy link
Owner

需求:点击一个链接,如果这个链接浏览器已经打开过,则刷新已经打开的链接窗口;如果这个链接没有打开过,则使用新窗口打开这个链接页面

要想实现元素href链接自动刷新或新窗口打开的功能,只需要设置target属性值和href属性值一样就好了

【实现a元素href URL链接自动刷新或新窗口打开-张鑫旭】

@smileyby smileyby added the HTML 🌴 HTML相关 label May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HTML 🌴 HTML相关
Projects
None yet
Development

No branches or pull requests

1 participant