HTML - Links Opening As A File
Hi,
Newby here - trying to make some link changes to an existing site and it has gone south for me. I have updated some java based links and it has blown up on me. They are trying to open as a file, rather than staying as a link. website address is dub, dub, dub nufinish dot ca. Small site, but trying to update it so that links operate properly. Thanks! Hendy Similar TutorialsI am using iframe on one of my webpages and it contains links to other webpages on my site. Currently when I click on one of those links it opens the new page inside the iframe I declared. I would like it to open on the full page in the browser, like a common link would and not open a whole tab either. I hope this makes sense. If anyone can help I would greatly appreciate it. Thanks! I take are of an internal site on our companies intranet. I have a set of 3 iframes for content. The problem I am experiencing is when a link I have in one of the content pages is clicked (target is already set to _blank) the link still opens inside the iframe. <a href="http://support.microsoft.com/kb/301583" target="_blank">Windows XP Shortcuts</a> that is the code on the site. like I said, this is on a page that gets loaded into an iframe Thanks for the help. I am using a 3 frame page (header, menu, bottom) I have a drop down menu that is in 'Menu' titled frame and i want it to open up in another frame called 'bottom' what do i add / change in my code below. Thanks in advance. Regards Grant Code: <script> <!-- function land(ref, target) { lowtarget=target.toLowerCase(); if (lowtarget=="_self") {window.location=loc;} else {if (lowtarget=="_top") {top.location=loc;} else {if (lowtarget=="_blank") {window.open(loc);} else {if (lowtarget=="_parent") {parent.location=loc;} else {parent.frames[target].location=loc;}; }}} } function jump(menu) { ref=menu.choice.options[menu.choice.selectedIndex].value; splitc=ref.lastIndexOf("*"); target="bottom"; if (splitc!=-1) {loc=ref.substring(0,splitc); target=ref.substring(splitc+1,1000);} else {loc=ref; target="_self";}; if (ref != "") {land(loc,target);} } //--> </script> </head> <body bgcolor="#000000" text="#FFFFFF"> <form action="dummy" method="post"> <a target="_bottom"> <select name="choice" size="1" onChange="jump(this.form)"><option value="">CHOOSE A LINK</option><option value="http://www.yahoo.com*_top">YAHOO</option><option value="http://www.hotbot.com">HOTBOT</option><option value="">- - - - - - - - - -</option><option value="http://www.microsoft.com">MICROSOFT</option><option value="http://www.netscape.com">NETSCAPE</option></select></a></form> </span> </body> Hi. I am trying to create a page containg 2 frames, right frame, and mainFrame. I am using the right frame to allow users to click links to remote sites browsable within the mainFrame. However, most of these sites require cookies and keep opening links in a new window. Is there a way to enable 3rd party cookies within frames, and to also disable links within the mainFrame from opening in a new window? p.s. I know Firefox allows users to use 3rd party cookies in frames. Thanks I cant open my php file...ive downloaded wampserver to support the file but it still doesnt open...wat could b the problem here??? I'm an html novice, and I'm trying to get a file to open in a new window and not replace the current screen. What can I add to this code and try? <html> <head> </head> <body> <script type="text/javascript"> location.replace('http://www.company.com/file.pdf'); </script> </body> </html> Currently, when clicked in a doc library in Sharepoint, the file takes over the screen, which is what I want. However, the user can't use the back button to return to the previous screen. So, how can I change this code so the file pops in a new window but doesn't also take over the original window (since location.replace causes this)? Or is there code I can add which allows the user to use the back button in the ie browser? Thanks! I appreciate any help you can give! Nicole The issue I'm having is that I can't open an html file via a link in an existing web page. My webpage is created in ASP.Net using C# to list out all the .html files in a specific directory. That works fine. Here is the resulting web page Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head><title> </title></head> <body> <form name="form1" method="post" action="ProductsForGraphs.aspx" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTExNzQ0NTIzMDlkZA5WbO/3euQo7nU92sfVjUhzzVQK" /> </div> <div> <table style="width:100%;"> <tr> <td> <a href='c:\FO\graphs\GE_Condor.html' target='_blank'>GE_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\GE_DblFly.html' target='_blank'>GE_DblFly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\GE_Fly.html' target='_blank'>GE_Fly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\I_Condor.html' target='_blank'>I_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\I_DblFly.html' target='_blank'>I_DblFly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\I_Fly.html' target='_blank'>I_Fly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\L_Condor.html' target='_blank'>L_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\L_DblFly.html' target='_blank'>L_DblFly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\L_Fly.html' target='_blank'>L_Fly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\ZQ_Condor.html' target='_blank'>ZQ_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\ZQ_Fly.html' target='_blank'>ZQ_Fly.html</a> </td> </tr> </table> </div> </form> </body> </html> Now when I click on the GE_Condor.html link, or any other link for that matter. The file doesn't open. Here is the code for the GE_Condor.html file. Code: <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml' > <head> <title></title> </head> <body> <p> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE0U0Z0H1M1CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE0Z0H1M1U1CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1H1M1U1Z1CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1M1U1Z1H2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1U1Z1H2M2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1Z1H2M2U2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2H2M2U2Z2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2M2U2Z2H3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2U2Z2H3M3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2Z2H3M3U3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3H3M3U3Z3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3M3U3Z3H4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3U3Z3H4M4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3Z3H4M4U4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4H4M4U4Z4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4M4U4Z4H5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4U4Z4H5M5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4Z4H5M5U5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5H5M5U5Z5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5M5U5Z5H6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5U5Z5H6M6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5Z5H6M6U6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6H6M6U6Z6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6M6U6Z6H7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6U6Z6H7M7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6Z6H7M7U7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7H7M7U7Z7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7M7U7Z7H8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7U7Z7H8M8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7Z7H8M8U8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8H8M8U8Z8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8M8U8Z8H9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8U8Z8H9M9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8Z8H9M9U9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE9H9M9U9Z9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE9M9U9Z9H0CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE9U9Z9H0M0CNDR.png' /> </p> </body> </html> If I open the file directly in IE (typing in the path) or double-clicking on the file from windows explorer, it opens without any problems. Any ideas? Thanks Bob Hey yall.. I have some pdf files on my website. When a user clicks on the download link, I would like to display a web form, after they have filled out the form clicking submit will send the mail form and download the file that they have clicked on. What is the best way to go about this? Thanks for any help on this Hi, When I open an HTML with my browser to see how it looks, instead of what the code should look like showing showing up, the code itself shows up. Sorry if this is a stupid question, I'm quite new to HTML. I use Dreamweaver CS5. This is the code I used: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> I am using <a href> classes in a css to change the colors of different types of links in my document. The default a:link is white. I defined another class a.bottomlink:link that is blue. If I use the bottomlink class with a link to a website that looks like this "http://website/subname/" I get a white link. If I use it with a link to a website that looks like "http://website/subname/pagename.asp" I get a blue link. I don't know the pagenames for all the websites I link to. Why is this happening? What can I do? Thanks. Hi everyone, I hope I have posted this in the right area. This is my first time posting here. I currently have my main pages listed at the top of my site as graphics (see fussybaby.ca). I would like to potentially remove these graphics and use text links instead - I had the graphics designed for me, so I can't just go in and make new ones, however I'd like to change/rearrange the links and add some new ones. So my question is: How hard is this to do? Is this something I need to hire someone to do for me? Thanks in advance for any advice! I'm sure this is probably one of the dumbest questions to appear here, but how would I get a link to a file to open that file in its native program - i.e. a .doc into Word or a .xls with Excel rather than in an IE plugin? Problem is, of course, whilst the IE plugins work, they don't have full functionality. I read somewhere that you could change the default settings in Windows, but part of what I'm trying to set up is on a business computer and of course, things like file associations and registry are tied down pretty tight so they can't be accessed, so I need to do it from within a page of links. Many thanks (in hope) Hi Guys/Girls, Quick Question im in the process of creating a website, and i have a table that contains links to other pages on the website, im having trouble on one, what im trying to achieve is when they press the link which is named "Add to Favourites" then it will automatically open there "Add to Favourites" tab "located top of the browser" but unfortunately its not working for me :-/ im currently using firefox for my browser im not to sure if this is the correct place to paste such an issue but im not to sure...... my snippet of the code is below, hope some one can help me. HTML Code: <tr style="Height:20px"> <td style="width:20px"><img src="/images/TriangleOnBlue.jpg" width="10" height="10" border="0" align=middle></td> <td style="width:108px" align=left valign=middle><a href="javascript:window.external.AddFavorite(location.href,document.title);" class="BlueTiny">Add to Favorites</a></td> </tr> I will also point out that all my Java is enabled.... Hope someone can help. Can someone post the code I would use to have a hyperlink on our webpage that would give visitors the option to view or download a pdf? Thanks! Hello - I am a newbie to the forum needing assistance with some HTML coding. I am trying to create a page which has a number of small images acting as buttons. When an image is clicked, a new window is opened which displays that image in full size. I would like this page to contain a "Close Page" button which closes this page. Also, is there HTML code which prevents users from downloading images that appear in this new window? Addition: I have found javascript code which closes a browser window: <a href="javascript:window.close()"> <img border="0" src="closingwindows.gif" width="95" height="46"> </a> but where do you put this code, given that the new page to display the full size image is created from the page that contains the thumbnail of that image? Any help appreciated! Onesimus heya guys i want to open a webpage in a new window when i click on a hotspot. can anyone tell me what i need to do? frosty I have a link on my website that opens up a new window, and that new window opens up and is resized to be smaller at 400X300. It works just fine on Internet Explorer and Safari, but when it's in Firefox the new window opens up on a separate tab in the same browser window and causes the whole window to resize to 400X300. Is there a way to fix this? Like is there a better coding to make sure Firefox will open this link in a new window for sure, and not just a separate tab? I'm using the coding target="_blank" right now..... how can i make the open a new window code work as it is in this include file: <div id="footer"> <img src="images/footer.jpg" alt="" width="998" height="45" border="0" usemap="#footer" /> <map name="footer" id="Map2"> <area shape="rect" coords="0,0,162,45"href="http://www.myspace.com/spittinknowledge" alt="myspace" /> <area shape="rect" coords="184,0,308,45" href="affiliates.shtml" alt="affiliates" /> <area shape="rect" coords="328,0,482,45" href="#" onclick="MyWindow=window.open('webmaster.shtml','Contact Spittin-knowledge.com webmaster','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes, width=525,height=560'); return false;"></a> alt="webmaster" /> <area shape="rect" coords="501,0,655,45" href="disclaimer.shtml" alt="disclaimer" /> <area shape="rect" coords="672,0,998,45" href="#top"/> </map> </div><!-- end of nav --> Hello frndz, i have made a landing page and a contact page tilll i complete the website , Websites URL is www.holycowtravels.com. The problem is that it is opening in chrome and firefox but not in IE please check out the code and try to please assist me. Regards, Nishant Hi, I want to open PDF files within my website so users can browse the file on the site rather than having to download the whole PDF file. How can I do this ? |