PDA

View Full Version : Website Link HTML Question


Overlay
01-27-2014, 04:05 PM
What code needs to be added or changed to the HTML for an existing link in a site in order to get the link to open in a new window when a site visitor clicks on it (the way the link at the bottom of this post does), rather than replacing the site screen that the visitor was previously viewing, so that the visitor then has to use the Back arrow to return to the previous screen? (I tried changing the HTML to pattern it after the way the code is structured for the link below, but it was resulting in gibberish.)

jerry-g
01-27-2014, 04:23 PM
Perhaps this link will help you.

So, You Want A New Browser Window, Huh? (http://www.htmlgoodies.com/tutorials/getting_started/article.php/3479481)

JustRalph
01-27-2014, 04:26 PM
<a href="http://www.w3schools.com" target="_blank">Visit W3Schools.com!</a>


Found this example online in a few places

I haven't manually coded for years but we used to use different stuff. HTML has changed over the years........try the above?

Overlay
01-27-2014, 04:41 PM
Problem solved! Thanks a lot!

Overlay
06-21-2014, 04:45 PM
After I posted my original question above, I recently switched from Internet Explorer to Google Chrome, while keeping the same HTML for the site. When I was using Internet Explorer and clicked on the links, a new window opened in a manner that gave me visibility of both windows at the same time. Now that I'm using Google Chrome with the same HTML, when I click on the link, the new window that opens up takes over the whole screen (even though there is still a visible tab to the original window at the top of the screen). However, I can't close or reduce the new window by itself, as I could with Internet Explorer, so I can't have visibility of both windows at the same time. (When I try to close or reduce it, it affects both the new window and the original window.) Is this just something that I have to live with as part of how Google Chrome operates, or is there additional HTML text that I can add or some other step that I can take with Google Chrome in order to have visibility of both the original page and the linked page at the same time, as I could with Internet Explorer?

JustRalph
06-21-2014, 08:54 PM
no warranty implied

but I know someone that uses a couple extensions to do it..........

http://www.makeuseof.com/tag/easily-view-multiple-tabs-at-once-with-these-chrome-extensions/

I know you can just open an new version of chrome and size them right next to each other....... I have done that .........and just did it to test it.

might want to look at this too

Tab Resize.........extension
http://www.maketecheasier.com/split-screen-layouts-chrome/

There are tons of reason why you need to load multiple tabs in a browser, and one of them is probably because you need to refer to information from two (or more) websites. However, with the current tabs architecture, you will have to switch between the tabs to view the information. Won’t it be great if you can split the screen layout and arrange the tabs side by side so you can view two (or more) tabs at the same time? A nifty Chrome extension called Tab Resize lets you use multiple tabs next to one another quickly and more intuitively than doing it yourself.

tupper
06-21-2014, 10:09 PM
In addition to the aforementioned "tab resize" plug-in, there is also "split screen (https://chrome.google.com/webstore/detail/split-screen/eachfleknamlcepmplpdghagngjfjkin?hl=en)."

Overlay
06-21-2014, 11:23 PM
Thanks very much for the responses. I was able to obtain visibility of both the original screen and the link screen on my computer by installing the split screen option, but I'm still not clear on how I can assure that people who access my site and click on one of the links in it can have the same capability on their computers if they don't necessarily have the split screen option installed. Am I missing something? Do I have to make some change to the HTML code itself for the links in order to get the effect that I'm looking for? Or do I just have to depend on users having the split screen option installed on their computers? (Sorry if I wasn't clear enough in my original post on why I wanted the capability.)

Overlay
06-21-2014, 11:52 PM
I think that I got my answer with a little further experimentation. Even after I uninstalled the split screen option, if I clicked and dragged the link window, it automatically resized and appeared alongside the site window so that each could be read, enlarged, or closed independently. (I just wasn't familiar enough with the process on Chrome versus Internet Explorer (if that in fact accounts for the difference).) I assume that users should be able to do the same thing without requiring that I change my HTML code for the links in some way.