HTML - Target="_blank" Doesn't Work With Images
So in a regular html text link, I can place the tag target="_blank" and it will open a new window when you click the link, and place the links contents into that new window. However, if I add that tag to a link associated with an image, the link replaces the current frame with the link contents. Is there any simple html way to have an image link open a new window?
- Neil Similar TutorialsHi, please have a look at a work in progress here. This theme temps to have a mind of its own... the 3 links that you see on the page wont open in a new tab whatever I try. Could someone tell me whats causing this? Thanks you. My jump menu/form has the attribute of target="_blank" but it doesn't seem to work. I'm a first time newb so i don't understand why. I have created a link and use the att _blank and it works fine. Any help would be super cool. Thanks. http://216.172.187.90/~httpmtfd/appr...es_archive.php http://216.172.187.90/~httpmtfd/agenda_archives.php What is the best replacement for a valid target="_blank" for XHTML 1.0 Strict doctype. Any suggestions? I couldn't find any older threads about this. On internal links it's definitely a no-no, but on external links I think it's up to the webdesigner to choose. What do you think? Hi, This question has been vexing me from quite some time now. When one links to the resources outside his/her website should the target="_blank" attribute be used for the <a> tag? Normally I use target="_blank" for anything that is outside my website. But this question bothers me even more when I am creating a list of resources. Since, while viewing these lists user will be more interested in the resources than my website. Recently I came across the following opinion a lot times: If the user wants to come back to your site he has the back button and also he can use the "Open in new window" option if he wants the linked resource to open in new window. Please share your thoughts about this point. Thank You. When I expand menu items IE automatically detects if scrollbars are needed. When I expand them in Firefox and the menus push below the bottom of the page no scrollbars show up. This might be a scripting issue as opposed to HTML - not sure. Rather than write them out i took a screenshot. So how do i get past those? Hi, I have a problem with validating Strict XHTML 1.0 ... The tag: "option" doesn't have an attribute: "onchange" in currently active versions.[XHTML 1.0 Strict]... Is there a way around this? Here's the code:. <select name="birth_month" onchange="form_d('yes');" size="1" style="width:8em"> <option<?php echo empty($a_birth_month)?' selected="selected"':''?> value="" onchange="form_d('yes');" >Month</option> Thanks Only another million pages to go. *please bear with me this is a simple problem which is sort of hard to explain* I run a very small (15 page) website for myself. The site consists of an image_list page, which is an index of 13 thumbnail images. Each thumbnail links to a single page, each page being a larger image of the respective thumbnail. These 13 individual pages are directed at the same base target window, _ximage. you can find the image_list window he http://www.winslowsmith.com/work/index.html click on any one of these thumbnail links and a new window (_ximage) will open. navigate back to the image_list and click another link, the _ximage window will reload with the new page. Pretty simple, right?, just a <base target=""> command. In safari this all looks swell, and the _ximage window, whether open or not, will always come to the foreground to load. Not the case in Firefox. My problem in Firefox is as follows: opening one of the given links in image_list will load a new window (or tab), with _ximage target, and the first time, that new window/tab with _ximage target will come to focus and be in the foreground. However, if the viewer leaves the _ximage window open, and navigates back to the image_list window and clicks another link, that link will load appropriately but the _ximage window will remain in the background. (and it works the same whether you are using windows or tabs to load your new pages). This is frustrating because it forces the viewer to click twice rather than just once to get to one of these 13 pages, and said pages are the reason people would traffic to the site. Is there any way to have the links to base (_ximage) target always load in the foreground in Firefox(even when the target window _ximage is open)? Is there code to tell the Firefox browser, hey this is an important window load it in the foreground? Is there a way to do it with anchors? any help is appreciated Hello, I've got a simple page with frames and a list of links. I'm trying to get hyperlinks to open into a frame called "PicFrame." The code I've got works (opens the link into the PicFrame) in IE8, FF, Opera, and Chrome, but not IE6 or IE7 which is what my 2 computers use most-frequently. Does anyone have any suggestions for a workaround? A fragment of the simple code is below. Thanks. HTML Code: //WITHOUT A HYPERLINK <TR><TD> <font size=2 face="verdana">Team 6 - Dewey, Killum, & Howe</font> </TD></TR> //WITH A HYPERLINK <TR><TD> <font size=2 face="verdana">Team 7 - <a href="picturePage.PHP?id=003-1-2009-07"; target="PicFrame";> Setting John Malkovich</a></font> </TD></TR> I regularly send e-mails with large PDF attachments and quite often the e-mails bounce back from their servers, even with really small attachments. I would normally just send a link to a file on our server, but my boss doesn't like this because he tried opening it on his machine and his plug-in for Adobe is corrupt giving him a blank screen, and this leads him to believe this is what others are seeing. I know, I know... But I am not in a position to educate him on fixing his own computer. My question is: Is there ANY workaround to creating a link that will open a PDF in reader directly? I cannot use PHP or any other server-side script as this is an e-mail, not a web site. But I can't risk sending attachments that bounce back. Any solution to this?? -Ryan http://www.colletts.co.uk/winter_dolomites.htm I have the above page that redirects users to my Winter Website - the HTML below isn't valid W3C does anyone know of a better and valid way to get this done? Cheers, Mas HTML Code: <META HTTP-EQUIV="Refresh" CONTENT="2.5;URL=http://www.colletts.co.uk/winter/winter_dolomites.html" /> A customer gave me a Word doc that they want turned into a printer friendly web page. I understand that there are tons of ways to do this but I really want the answer to the subject. What i'm referring to is a form that someone can print from the browser and "fill in the blanks" on the page where there are "underscores". My question is how to code those underscores. I tried manipulating the <hr> tag but it's putting way too much space in between each <hr>. I've already coded a "fill in the blank" line using <u> nbsp;</u> but that looks very messy. What do you guys/gals think? Hi Jquery Guros, I develop register form (in arabic). I added "validator.addMethod" to check the firstname text.I want to check that the "firstname" text must be in INGLISH leter and Numbers(means, user can't insert arabic leters or anything else). I added the script: ///////// chack firstname (English leter OR numbers <b> Code: $.validator.addMethod("firstname",function(value,element){ return this.optional(element) || /^[a-zA-Z0-9._-]{3,16}$/i.test(value); },"Username are 3-15 characters"); </b> You can check the script at: http://www.alnaddy.com/ldap/index1.php Can anybody help me guys? Thanks a lot. Sam. Can someone help here. I have tried other groups and no help. I have a web page with image buttons. This is supposed to take me to difrent web pages depending on which button is clicked. This works in Firefox and Opera but not in IE8 http://www.des-otoole.co.uk/cms/admin/pages.php Desmond. Hello, I'm using this tutorial on creating an ipod-esque "cover flow" photo album for a presentation I'm putting together: http://www.elated.com/articles/cover...ss-and-jquery/ What I'm trying to figure out is how do I make each image a clickable link that will open a url in a new window. I know the code is Code: <a href="URL" target="_blank"</a> but I have no idea where to begin and end the tags. I either need it where I can click on each picture, or the text under each picture so that each one has a separate URL that opens in a new window. thanks I was hoping someone could clue me in as to whether or not this would be possible. I'm thinking it isn't but I need to make sure. I'd like to provide a file for people to download on my website, but when they click on the link and the download window appears I don't want them to have the option of opening it. Is it possible to only give them the option to save the file? Sounds incredibly unlikely but I gotta know. I have this: Code: <script language="Javascript1.2"> document.write('<a href=onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav_email','','images/nav_email-over.gif',1)" "javascript:void(0)" onclick=window.open("/recommend/recommend.php?loc='+window.location.href+'","","height=280,width=230,top=150,left=300,toolbar=no,menubar=no,location=no,status=no,resizable=0")><img src="images/nav_email.gif" alt="email page" name="nav_email" width="29" height="24" class="imgborder1"></a>'); </script> but the image wont show up. I have an image that has a mouseover/out rollover effect. I also have it pop up a new window with a "recommend this page to a friend" script. I can't figure out why the image wont show up, it's like it's invisible. Here is the code that I am using; Code: <table frame="vsides"> <td> Testing123 </td> </tr> </table> And here is the site with the result; http://radicalwriting.uphero.com/ For some reason it never works quite right, I don't think it's a syntax error. Only thing I could think of would be wrong doctype. Any thoughts? Hi! I'm new here, and know the bare bones basics about HTML. I know how to include a link with an image on websites, and I also know how to use the mailto command in e-mail. Is it possible to have the mailto command "embedded" in an image in an e-mail, similar to how you would use the "img src" command on a website? Thanks!! |