Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm trying to link to a particular spot in a pdf from my aspx page and using a javascript function that opens them in a separate window. I have a central place that I keep my javascript - this is the function:

 

function PDFPop(filename) {
newwindow=window.open("DocPopup.aspx?DocId=" + filename,"PDFWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,screenX=200,screenY=200,top=200,left=200,width=800,height=600");
}

 

I read that you can insert the #page=page_number into the url address, but this is how mine looks:

 

<A class="nysiflink" href="javascript:PDFPop('NYSIFDBWebInstructions.pdf',800,600);">Need Help?</A>

 

so when I add in the page reference, I just get a blank pdf window. This is how I tried it (well one of the ways...)

 

<A class="nysiflink" href="javascript:PDFPop('NYSIFDBWebInstructions.pdf#'page=3,800,600);">Need Help?</A>

 

Can ANYONE help me with this??

 

Thanks in advance!!

Tara

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...