Is the target attribute new-window or my-window a javascript or a css rule? I have one a domain create in the past with multiple links where a link open a new-window and another link opens the same new window i.e prevents multiple new windows being opened i.e. only one new window is opened. I recently created a new domain with the same target tag in each of the multiple links but it now opens each of the links in separate windows not in the same window. I'm trying to establish if I need to add something to the new domain so only one window is open for each link. I seem to remember something about this being mentioned years ago. Can you help thanks
Reg Phipps MBCS
new-window or my-window
(5 posts) (2 voices)-
Posted 1 week ago
-
The target attribute can be used to open in a new window or tab every time:
target="_blank"
or it can open in a new named window or tab:
target="my-window"
Posted 1 week ago -
Hi Jerry,
Using the attribute target="my-window" opens multiple links in a single window i.e. the same window is opened for any of the links but this does not seem to work when wrapped in a social-icons class.
<ul class="social-icons">
<li>...</li>
<li>...</li>
<li>...</li>
(/ul>It works when wrapped in a p7TKL class
<ul class="p7TKL-list-h p7TKL TKL tkl-BTN tkl-LC-white tkl-HC-white tkl-BGL-blue tkl-BGH-black tkl-BRD-lt tkl-rnd">
<li>...</li>
<li>...</li>
<li>...</li>
</ul>You can see this in action on http://www.phippsconsultancy.com/ for the links view more... Reg and view more... Fiona as compared to the social media links at the bottom of the page
Can you help, is there a fix or any suggestion to have it work in a social-icon class?
Thanks, RegPosted 1 week ago -
What is happening is that the linked page changes the name of the loaded window so when the next social media icon is clicked it does not find the 'my-window' and consequently opens in a new tab. There is no way to gain control over this because the linked page is making the change. It will always be a problem with the social media and other links that alter the name of the browser window when their pages load.
Posted 1 week ago -
Hi Gerry,
Thanks for the explanation at leat I now know it was not something I need to do and apologies for the misspelling of your name on my last reply.
Kind regards,
RegPosted 1 week ago
Reply
You must log in to post.