HTML - How To Obtain The Filename.htm Of The Current Page Loaded?
Dear colleagues,
I'm new in Web design and I don't know all HTML reference. I need one HTML statement to include into a page code, that allow to obtain the file name (like "pagename.html") of the page I load into the browser. This value of "pagename.html" I will use to load in a variable. For example: When I load "home.html", I need that this page have a HTML statement that detect its own filename "home.html". Once detected, I will use this value in a variable. I hope I'm explaining clearly. Thank you for your help! GusSiglo21 Similar TutorialsHey all! I'm just starting to work on a site and already it's giving me a hard time. It's not much at the moment, but here's where I'm at http://comgardens.com/wandl/index.html If you hit the refresh button a couple of times you'll see that the content jumps, at least in Firefox, and I can't figure out why. Anyone have any ideas? Thanks!! How does one make a bar that creeps across as the page loads so that the viewer knows when the page is fully loaded? Thank you, KarlT For example, this scenario: 1. My page contains the text "giraffes in corduroys" 2. somebody googles that text - either as a phrase or just the words 3. google points them to my page 4. the user clicks to go to my page... Is there any way to determine that it was the text "giraffes in corduroys" which brought them to my page? Would the crux be getting the previous URL in the browser history? I am making a page with a load of thumbnails which are links to other pages. The code is essentially... Code: <a href="#"> <img src="thumbnail" /> <span> <img src="larger image with some nice css styling" /> </span> </a> a span has display none and and a:hover span has display block. What I want to know is does the larger image load with the whole page or does it only load when you hover on the link. I.E. does having loads of hidden images effect page load time? Thanks Hello; I have text box & submit button in page_1 & I have text box & submit button in page_2. I want when write text in text box in page_1 it go directly to text box in page_2 & I want when click on submit button in page_1 it is like click on submit button in page_2. Assume page_2 located in other site www.page_2.com. How to do that.?? Not even sure what to call this actually... I received this message from a friend whose site I just put up. ---------------------------- When you click on say the Home Page, and then you click on something else then go back to the prvious page, it apparently displays the previous page on the home page for example. I was not able to recreate this on my computer, but apparently, [another] web developer said this is a fairly common problem. Do you know what he is referring to, and can it be fixed? ---------------------------- Here's the site in question. Nothing fancy, just individual HTML pages. http://www.soundadviceht.com/index.html I gotta admit, I have no earthly clue what he's talking about, unless he's relaying the message wrong? Any ideas what he's talking about? I want to load a local html file in an IFrame. The main page is loaded from a remote site (http://www.mysite.com). How can I do that if I don't have a web server installed on the local machine? Is there any workaround? Thank you! Hi guys, Basically, I have a .swf that I want to put on multiple pages that is capable of linking to different pages without having to customise the xml per page. I'll try and explain myself: If I inset the flash file on page1, then I want to have links coming out of the flash that direct to http://site/page1/A and http://site/page1/B. I'd then like to use the same flash on page two, and have the links point to http://site/page2/A and http://site/page2/B. I basically need to have the link address take into account the page the user is on and add an A, or B to the address. Is this possible? Perhaps it will require javascript? I can't get my head around this, so any help would be much appreciated! Thanks What I want is to use some html or javascript or something to show the user of my site the exact page they are viewing. Then i would set it up so they could either bookmark it or copy the link. So a normal bookmarking script is not what I want. I need to be able to display the link the user is viewing on the page they are viewing. How can this be done? Alright, I haven't been coding in a while, just got back into it. Well my question is, how can I make the Home button, light up, ONLY on the Home Page (Chat button light up on Chat page) etc etc. I already have rollover image buttons on my site. Here is my HTML: Code: <html> <head> <link href="style.css" rel="stylesheet" type="text/css"> <title>Decker Designs</title> <SCRIPT LANGUAGE="JavaScript"> image1 = new Image(); image1.src = "http://s2.postimage.org/gn90899g/home2.png"; image2 = new Image(); image2.src = "http://s2.postimage.org/gocp4l44/chat2.png"; image3 = new Image(); image3.src = "http://s2.postimage.org/gp1i6sis/gal2.png"; </script> <a href="index.html" onmouseover="image1.src='http://s2.postimage.org/gn90899g/home2.png';" onmouseout="image1.src='http://s2.postimage.org/gn5p5k9w/home1.png';"> <img name="image1" src="http://s2.postimage.org/gn5p5k9w/home1.png" border=0></a> <a href="chat.html" onmouseover="image2.src='http://s2.postimage.org/gocp4l44/chat2.png';" onmouseout="image2.src='http://s2.postimage.org/gohnqmlg/chat1.png';"> <img name="image2" src="http://s2.postimage.org/gohnqmlg/chat1.png" border=0></a> <a href="gal.html" onmouseover="image3.src='http://s2.postimage.org/gp1i6sis/gal2.png';" onmouseout="image3.src='http://s2.postimage.org/goy743j8/gal1.png';"> <img name="image3" src="http://s2.postimage.org/goy743j8/gal1.png" border=0></a> </head> <body> Thanks everyone! hai, could anyone plz tell me, how to open window popup in current html page ( that means not in different window) without statusbar,locationbar,titlebar and menubar and scrollbar. Thanks®ards kelvin I want to display the current page URL in an input box, so users can copy the url from the input box rather than from the adress bar. Kinda like this: HTML Code: <input type="text" readonly="readonly" value=" -PAGE URL AUTOMATICALLY APPEARS HERE- " /> I've seen a code that can display the URL, but it displays as regular text, rather than inside an input box. Secondly, I was wondering if the same thing could be done(in an input box), but the url will be displayed inside of a link- like this: HTML Code: <input type="text" readonly="readonly" value=" <a target='_blank' href='PAGE URL APPEARS AUTOMATICALLY HERE'>Click here!<a> " /> Is this possible to do? Hello, I am a beginner at HTML. I am new to this forum so I am sorry if this is posted in the wrong section. I'm trying to create a website that consists of a name and message input, and after you click send message, it sends it instantly to the current page under this input. So far I have this for my form: Code: <form method="post" action="" > <textarea cols="25" rows="1">Name</textarea> <br> <textarea cols="200" rows="10">Message</textarea> <br> <input type="file" /> <br> <input type="submit" value="Send Message" /> </form> How can I edit this code so that when one sends a message, it appears directly under this form and will place above any previously made messages, so that basically the most recent message appears at top. This is much like facebook messaging, when you send the message it appears above the message box and appears instantly. Thanks for the help. I have need to include a button in a SharePoint page that will refresh that page, but strip out everyting after the .aspx in the URL (meaning "?blablabla"). I know the simple code <a href="#">click me</a> will load the current page. But is there a code that will strip out everything after the "?" portion? Hi all friends, I am a photographer and I am trying to set up my website with a full screen gallery. The address is: http://provasitofoto.altervista.org If you go to the portfolio section and click on the any thumbnail you will see the chosen image go to full screen which is actually what I would love to have but....as you will probably notice, you will see only a part of the image, even if it is full screen it is "cutted". Now of course what I need is the possibility to view the entire image full screen, even stretched but with the ability to fit in any screen and browser. I am new to this kind of things znd so here I am asking for your help. Please consider me like a 5 years old baby and so explain to me step by step what I should do to solve this problem. Thanks in advance to any kind soul who are will to help me. God bless you. Marco from Italy So how would I manage to do so? I just need a simple set up, thank you. Have a look at the page here . The navigation needs to adjust to the page being watched.. So when you press a link in the navigation bar, that link needs to change with a big white block behind it. thank you Looking for a simple Java applet that will search filenames from an entered keyword and display matching files for download. All that I can seem to find will search the contents of a file (html/txt) and display results. I'm looking to search through PDF filenames and display results. tnx Hi, I am building the download centre of http://www.i-conica.net I have a directory structure similar to the image in this thread. http://forum.i-conica.net/cgi-bin/fo...?m-1207092405/ The bottom image, my plan is to have the download page, with continually updated information on the new versions of software, put the software files in a separate folder and link to the folder, i thought if there were only one file in there ending .exe it would download it? It doesn't it just displays the directory. I wanted to be able to just throw the files in their own folder and not have to worry about changing links to the file. because the folder would remain the same. Is this possible? Thanks. first of all, i'm sorry if this is a repost, basically i've uploaded an audio player to a site, www.habit-music.co.uk, ( i know this is a scruffy code btw.) The player works fine in firefox, chrome, etc, but in ie it shows as a white box, how can i fix this? also my spry nav bar does the same. On a side note if anyone knows of a better audio player could you tell me please? thanks, olly |