I have a bunch of <a href=".html">
links and want to make them all open in new windows.有沒有辦法打開所有<a href> links on a page in new windows?
I know I can do a search and replace all to add target="_blank"
to all my <a href="...">
links.
However, is there a quick way, such as setting a CSS style, or adding some JavaScript code, to accomplish the same thing?
您可以搜索並替換您的項目。 – Krycke
重構總是比變通方法更好。從長遠來看,你可以節省很多工作。所以只要做一個搜索和替換,而不是引入一些JavaScript解決方案,這又會減慢你的頁面速度。 – Christoph
我說我知道我可以做一個搜索和替換-_- –