Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML Question
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00520334
Message ID:
00520692
Views:
11
>I need to create an HTML file which is simply a link to a PDF file.
>
>What I want to happen is when the HTML page is opened, the PDF page which is reference in the HTML is opened automatically.
>
>I am using this in an HTML Help file. I have topics which refer to an HTML page, but I don't want the HTLM page to display, I want the PDF document which is referenced in the HTML to be automatically displayed.
>
>I don't want the user to have to click on the link to the PDF, I want the PDF to start up right away.
>
>I don't know the first thing about HTML, so this has been kind of rough.
>
>Possibly some javascript is necessary to do this.
>
>Thanks,
>

Greg;

I am using Visual Interdev - what are you using to create a HTML page?

Here is some code - I hope you get the idea. The address may or may not work. Also, if you are using Netscape, absolute positioning may not work.

If you care to tell us more about your requirement perhaps we could make suggestions.




< %@ Language=JavaScript %>



< HTML>
< HEAD>




< META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
< /HEAD>

< BODY >
< form name="frmTest">



< label id=lblHelpFile
style="HEIGHT: 25px;
LEFT: 10px;
POSITION: absolute;
TOP: 10px;
WIDTH: 700px">
< h2>Launch Help File
< /label>



< input type="button"name="cmdHelpFile" ID="cmdHelpFile"
style="position: absolute;
width: 175px;
top: 150px;
left: 10px;"
title="Help File."
value="Help File">


< /form>



< SCRIPT LANGUAGE=javascript>

function frmTest.cmdHelpFile.onclick()
{
location.href = "http://myserver/PDF/help.pdf"
}

< /script>






< /BODY>

< /HTML>
Previous
Reply
Map
View

Click here to load this message in the networking platform