open more tbs in html |
open more tbs in html |
dragomir46 |
Jan 22 2021, 01:42 PM
Post
#1
|
Group: Members Posts: 5 Joined: 22-January 21 Member No.: 27,742 |
Hello Guys
I have a problem may be some one can help me. In a html file i got different picture with different html files, <div> <a href="sh/f800gt/f800gt.html" target="new"> <img src="sh/f800gt/logo.jpg" alt="" ></a> <p class="text-2">BMW f800gt</p> </div> <div class="last"> <a href="sh/f800r/f800r.html" target="new"> <img src="sh/f800r/logo.jpg" alt="" ></a> <p class="text-2">BMW f800r</p> </div> My problem is , when i click on the first picture it opens in a new tab - everything is good untill here- but when i click on the second picture , it replaces the previous tab, and i need to open in another tab, leaving that tab open with that html, i put "_blank" but the same. I hope i made my problem clear, if not please do not hesitate to ask me. I m new in web design so i hope i explain corect. Thank you in advance for you interest in solving my problem. This post has been edited by dragomir46: Jan 22 2021, 01:43 PM |
pandy |
Jan 22 2021, 02:07 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
What browser? target="_blank" should work the way you want.
target="new" just creates a named window. "new" has no special meaning. It will be treated the same as target="pandy" or target="dragomir46" and the window will be reused. Only these target names are keywords with special meaning (bottom of the page). https://htmlhelp.com/reference/html40/value...tml#frametarget |
dragomir46 |
Jan 22 2021, 02:43 PM
Post
#3
|
Group: Members Posts: 5 Joined: 22-January 21 Member No.: 27,742 |
What browser? target="_blank" should work the way you want. target="new" just creates a named window. "new" has no special meaning. It will be treated the same as target="pandy" or target="dragomir46" and the window will be reused. Only these target names are keywords with special meaning (bottom of the page). https://htmlhelp.com/reference/html40/value...tml#frametarget Thank you verrryy much Pandy, it helped a lot, i use target="parent" , and solved my problem. Cheers, and thank you again |
pandy |
Jan 22 2021, 04:30 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
'_parent' with an underscore. It shouldn't work. '_parent' is for frames but if you don't use frames it opens the page in the window that called it, i.e. you shouldn't get any new tabs at all.
'_blank' is what works like you say you want it to. |
dragomir46 |
Jan 23 2021, 05:38 PM
Post
#5
|
Group: Members Posts: 5 Joined: 22-January 21 Member No.: 27,742 |
Good day Pady
i got a java lin to add cookie to my website <!-- Cookie Consent by https://www.FreePrivacyPolicy.com --> <script type="text/javascript" src="//www.freeprivacypolicy.com/public/cookie-consent/3.1.0/cookie-consent.js"></script> <script type="text/javascript"> document.addEventListener('DOMContentLoaded', function () { cookieconsent.run({"notice_banner_type":"headline","consent_type":"express","palette":"light","language":"ro","website_name":"www.hobbymoto.ro","change_preferences_selector":"#changePreferences","cookies_policy_url":"shop.hobbynoto.ro"}); }); </script> <noscript>Cookie Consent by <a href="https://www.FreePrivacyPolicy.com/free-cookie-consent/" rel="nofollow noopener">FreePrivacyPolicy.com</a></noscript> <!-- End Cookie Consent --> The problem is i add the link to my html front page in the header but it won t work, have any ideea or a better solution to add cookie message to my website. Thank you |
dragomir46 |
Jan 23 2021, 05:58 PM
Post
#6
|
Group: Members Posts: 5 Joined: 22-January 21 Member No.: 27,742 |
Thank you in advance i solved the problem.
ll the best |
Lo-Fi Version | Time is now: 25th April 2024 - 10:30 PM |