HTML - Redirect To Local Html File
I am in the process of installing an internet blocker on my Ubuntu machine. I have an access denied page that I have made up, but I want the page to redirect to a file located in each user's home folder after a few seconds. This basically makes a unique page for each user when something is blocked.
Normally I would think to do this in either javascript or using the meta refresh tag, but this appears to be a prohibited behaviour for obvious security reasons. Is there any way to turn this off and allow local redirection? Yes, this a highly abnormal thing to want to do on a page...I have been designing and building commercial websites for years and never have I had to do this Similar TutorialsHi, Does anyone know how to link a local file and open up in your browser? I have tried <a href="file:///C:\TestFolder\test.xml" target="_blank">TEST FILE</a> But it doesn't work . Can anyone help me with this? Thanks , Geek.Shrek 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! Tried to redirect a file using htaccess , heres the code i wrote. Redirect /phpbb http://www.techno-source.co.uk/joomla/ Redirect / http://www.techno-source.co.uk/joomla/ And saved it as .htaccess , ftp it to the root of my site. But now it wont redirect any idea what's up? How to attach a local file to mail with "mail" syntax? Thank you! -gav Hi all, I need to have a link on my web page which allows the user to download a file on the c: drive of my web server. Basically when they click the link they will be prompted to download this file. Any ideas on how this can be done? I tried the following on FF but it does not work... <a href="file:///C:/testUpload/CA_P1470H_2008-1209-143322.xls">major_bob_12-09.xls</a> Thanks in advance for any help. Greetings all. I have what i would think should be an easy thing to accomplish, but i just don't know how to do it... i have a .exe that is on a usb drive which currently auto-runs when you plug the drive into a usb port... what i want to do is have an HTML file that basically acts as a splash screen, w/ other options, that auto-runs instead... all of which is easy enough for me... but what i don't know how to do is to get a link on the HTML file to run the .exe as opposed to give the prompt to save it... is there an "easy" way to do this? both files reside on the same directory of the flash drive, and the .exe would only run when the user clicks the link... seems like it should be possible since i can auto-run the .exe, but w/ security restrictions, i can't seem to figure it out... TIA hi all, am new here, please bear with me! I have a request, I am creating an Intranet site for my company and would find it useful to display on the page the local machines IP address (not the public one), the LAN one. Can this be done in HTML or not, and if yes, can anyone please kindly point me in the right direction?? Thanks in advance. hi everybody, I am working in a html. I defined a functiion in a html file.(first.html) I want to call that function in another html file.(second.html) How can i call that function in second.html file? give some sample code Thanks in advance.... I have set up a html redirect on a website that i manage. It is a schools website so there is a job section. I have set the redirect as http://www.fakeurl.com/jobs.htm and i have put this in the root of the "www" folder. Is there anyway of making it so its just http://www.fakeurl.com/jobs Thanks I am doing i tech project and we have to make a website (WOO) we have to use claris (i am not) but i am using dreamweaver anywho i would like to make a submit button that connects to another webpage file on my schools intranet and i would like a redirecting thankyou page like something on the ubunut forums page something cool that will wow him. i can do it in java too if it is easyer Is there a way redirect html website if viewed on symbian OS ? I understand the <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html"> code and wondered what people thought of the form for redirecting automatically to a mobile dedicated site? or is there a way to enable a popup or page where you can choose 'Go to mobile site' or Go to Standard site' when any page is viewed by symbian OS? Can someone help me to create a html redirect code ? If my page is down, i want to redirect to another website. And if I could to put more urls in html file and if one is down to redirect to another.Tnx Hi All, I am wondering is there any way I can write an html which redirects based on a response. I want to develop an html file, which checks if a page returns ok then it goes there otherwise in case of a 404 it goes to another page. Is it possible. Thanks Anud Right here it goes, not sure if it is at all possible but any input would be much appreciated. Here's the deal. Developing an easy straight forward online store integrated with EBSWorldpay . Not looking for any fancy stuff. What i would like to do is put a flash url link that would direct a user to a html file that contains a hidden form and it would submit it on load redirecting a user straight to EBSwordpay checkout. Simple HTML Redirect with submited form. check the link here it has the source code of the form that is required.: http://www.rbsworldpay.com/support/b...=examples&c=IE Trying to use Example 0.1 ( So instead of having a separate page with a "BUY" for the form to be submitted, I would like to get the form posted straight away which would in turn load the payment site. Would create a seperate html file for each item and have redirects on the main website linking to those onLoad submit forms. Tried to explain as best as possible. Let me know if it's not clear enough. Hi, I'm trying to include one HTML file in another. I tried iframe and was displeased with the results, I want the size of the frame to change dynamically and not just scroll. Fair warning, my knowledge of JavaScript is non-existent >_> . Basically, I have a document written in HTML (please don't suggest a wholesale re-write, that's simply not practical) and the idea is to have one file where it makes sense to include it several times. One thing to mention, this document is not meant to be shown on a web-server, but in a browser while you're reading it off your hard-drive. Here's what I have so far. main.shtml Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>test</title> </head> <body> <center> <h1> This is only a test! </h1> </center> <p> Still testing!!!!! </p> <!-- #include file="included.html" --> <p> Even more testing!!!!! </p> </body> </html> included.html Code: <!--<html> <head> <title> asdfasdfasdfasd </title> </head> <body>--> <p> <h4> foobar </h4> <br> <br> <br> <br> <h4> boofar </h4> </p> <!--</body> </html>--> Not sure what I'm doing wrong, help appreciated! Hi ,I am new in html.Hope you can guide me step-by-step on this. I want to import my .txt file into the html form and the html form can add new item then to be add in to that particular .txt file too as well. can this be done? For example: (fruits.txt) 1.apple 2.banana 3.orange Can this fruit.txt be impoted to fruit.html page and show it at fruit.html page, at the same time, the fruit html page allow to add in new fruit, and once user add in new fruit, the fruit.txt file will be updated as well. Thanks for your guidiance and help. :-) I have a website where I want to make a drop down menu that will bring you to different pages. It is a very basic, sort of old-fashioned website that relies entirely on html. What I'm trying to do is make a drop-down menu that will be used as navigation for a section of a website and I want to have it in each internally linked page in that section, but I'm going to be adding more pages to it over time so I want to be able to put the drop-down menu code in a separate text file and then substitute it into the pages that I make that the options in the menu link to and then just edit the code in the text file when I add another page so that I don't have to go back and edit the code every single individual page whenever I add a new one among them. Basically all I'm asking is how I can put html code in a text file and then substitute that code into an html page by referring to the file. Thanks in advance for any help. Hi guys I want to add some php files into my frontpage html files, please let me know how to do this. I tried many things but fail. Please guide me. Thank you GCS Hi all, I'm working on a project to make my job a little easier. A brief description is that I have to write up case notes and when I am finished with the notes I submit them. What I am looking for is a code so when I hit the submit button on the tool I created, it will create a log file and save my case notes to that log file. The tool that I created is html based and it's on my local computer. I would also like for it to create the log file on my local computer. Is this possible? A good example is like a messenger service like msn or yahoo IM. When you are done talking to someone it creates a log file of the conversation. Im looking for something like that but that creates a log when I hit the submit button. Any ideas? Best regards, Kris Hi all! I've got a very strange problem with a webpage: If you type http://www.varbanovsoft.com/ images are not correctly displayed but if you type http://www.varbanovsoft.com/index.html they appear!! Any idea? I'm completely lost ... Thanks!! T |