Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HREF - PDF doc - Window size & location

Status
Not open for further replies.

teblack

Programmer
Apr 30, 2004
45
I have the following href statement in an asp page, that is used to display a PDF document. The users are requesting the document to open as the top window, and maximized. Can this be done, if so, can you please point me in the right direction.

Code:
        <a href="default.asp?action=employer.viewPrintPDFForm&formSelect=<%=vaForms(FldPos("pk_formid",saFormsFieldNames),0)%>" target="_blank">View/Print Withholding Order Form (PDF)</a>

Thanks in advacnce for any help.

T.Black
 
this is really a question better suited for the javascript forum (forum216). you can not specify "maximized", but you can determine the size of a user's screen and open a window that is that exact size. as for opening the window in front, that really depends on what else the user is doing while the PDF file is loading...



*cLFlaVA
----------------------------
[tt]( <P> <B>)13 * (<P> <.</B>)[/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
cLFlaVA, quick question, how is an <a href> better suited from the javascript forum? I thought this was an HTML tag?


Anywho, here is one answer to the question, to make the document appear on top of all windows, use the "_top" command on the target label, see below...

Code:
        <a href="default.asp?action=employer.viewPrintPDFForm&formSelect=<%=vaForms(FldPos("pk_formid",saFormsFieldNames),0)%>" target="_blank, _top">View/Print Withholding Order Form (PDF)</a>

Thanks, 

T.Black

TBlack -
 
1) to control the size of a window, you need to use javascript - it can't be done with straight HTML.
2) _top does not bring up a window in front of all other windows. it allows links/pages to be opened at the "top" of a specific browser window - so in the event of frames, the link will break through the frames and load.



*cLFlaVA
----------------------------
[tt]( <P> <B>)13 * (<P> <.</B>)[/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top