Have a question for everyone, trying to create blog links for a client that open up in separate pop up windows. I have tried a couple different types of HTML code to make this work, and I must be doing something wrong. And each recommendation was different than the next. So not sure exactly what I'm doing wrong. Can anyone help out, and supply the correct coding I need for this? Thanks all, Jim
Maybe you're not being very clear? You have a blog, with plain old ordinary clickie links, but you want that when someone clicks on those links, a "pop upn window" appears? What do you define a "pop up window" as? Do you mean a whole new window, like target=_blank does? Or do you mean an actual popup like what's blocked by most browsers' popup blockers? Or something else? A lightbox? The best solution would really, really depend on what specifically you want, and then you'd need to keep in mind that new windows are frowned upon usability-wise (and plenty of us can make your browsers not allow them in any place), regular popups are generally blocked even if they are not ads by modern browsers, and that if you choose to use Javascript for this, know that you'll need a fallback for those without JS enabled (if these are ordinary links, just make sure they have a good, valid url in them and you're covered). If you mean a lightbox, that's just fancy Javascript, and I've heard some people call those "popups".
<a href="http://www.YOURSITE.com" target="_blank">LINK TEXT</a> Code (markup): This'll popup whatever link you add instead of www.yoursite.com in a new window. The target="_blank" is the command to make the browser open a new window with the link.
I'm sure you already know this, but people hate it when stuff opens in a new window. Perhaps let them know in brackets beside the link that this will happen.
I guess I'm the exception to the rule? I would rather have both pages available (in a new tab, not window)because I usually forget where I came from and it's just easier to close out the new window. jmho
Not really, I'd say you're pretty normal : ) There's a difference between forcing someone's browser to open a new window whether they want it or not, and letting them open it in a new tab (which, those of us who use tabbed browsers usually can click on the link with the option of opening in a new window, tab, or whatever). Which I do all the time : ) So, the issue is the forcing (yes some browsers can be configured to disallow new windows and turn them into new tabs instead), not the fact that there's another window. And as far as I know there is no target=_blank version that says "new tab". Target was invented for Framed sites, where the target=the destination frame. Blank meant "not a frame on this page" and therefore opened a new window. Since frames are bygones, most of the time target should be a bygone, which is one of the reasons why it was deprecated in the Strict doctypes.