Crosswords2 mins ago
HTML code writing - basic question
I have a link to another site on my website. How do I get the link to open the other site in a different window to the current window?
Thanks
Answers
No best answer has yet been selected by dannyjoseph. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.If you followed the "mustn't force things on your users" policy then I suppose you would ban Flash presentations to give you animations, and Acrobat pdf files to preserve document formatting.
How about you have a site and want to include a feedback form. The form is laid out with fixed input box sizes, and the boxes are ordered in a logical (we hope) way, followed by the ususal Submit, Clear and Exit butons. What is wrong in wrapping that in a fixed size new window (carefully designed to be smaller than the user's screen) that closes when submit or Exit is evoked?
Maybe you have some thumbnail pix that, when clicked, open new fixed size windows of larger versions. The user can close the larger pix and return to the thumbnails without reloading. Seems neat ot me!
How about you want to let folk explore another site but not loose track of yours, so when they close the "away" site they are returnd to yours for further broowsing? What's wrong there? (Broowsing is what contented cows do, mixture of munching and mooing!)
hippy: I would not ban flash no. Its current implementation is flawed, but that's due to accessibility issues. acrobat is great, but its not intended to replace websites. the only bad thing about it in fact is that its a proprietary file format.
for a feedback form, why not just have a normal page and call it the "feedback" page, with the form on it. no exit, as to get rid of it you just have to go to another part of the site (the site's main links are all there on the page too). once you've submitted feedback, it'll tell you that it's been seen successfully, and will allow you to get back to the home page or your last accessed page.
thumbnails: this is a reasonable use of new windows. new windows are not in themselves bad, that wasn't my point. my point was that new windows just for new sites is bad. but then again, if the visitor was using a good-enough browser such as opera or firefox (and not the atrocious IE6), then they could easily click their middle button to have the link (i.e. the fullsize picture in this case) open in a new tab, that can just as easily be closed as a popup window. but the idea is just the same. at least i'm not forcing the visitor to have a new window, or new tab.
If a visitor wants to explore another site, they can do. that's the whole point of hypertext. but you shouldn't make them return to your site once they've finished browsing that one, that's just bad practice. If they want to return, they will do. If they'd wanted to return, they'd have opened the external site in a new tab or window themselves, so they haven't lost where they are on your site.
You don't go by the name of William Gates do you?
Thanks for the help re the actual code.
To add to this argument re music or no music, new window or not:
Given that I'm using my site as a promotional site (I DJ) and my link to the new window says click here to listen to 'xxxxx', then if somebody didn't want to listen to music they wouldn't click the link.
The new window lists a playlist and musical write up of what's playing. From a promotional point of view, I don't want people to stop listening to the music because they've clicked the 'back' button- I'd want them listening to the music as well as being free to explore my site further (which has details of up and coming dates etc)
I've been getting feedback from people suggesting that my site looks and works well thus far. I must be doing something right, me thinks!
And I second Kempie's 'horses for courses' comment.
Related Questions
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.