Use onClick to open new window with PDF file

Results 1 to 2 of 2

Thread: Use onClick to open new window with PDF file

  1. #1
    Join Date
    Dec 1969
    Posts
    136

    Default Use onClick to open new window with PDF file

    Hi,<BR><BR>I am using the onClick event to open a seperate window to show the pdf file in this window. However the onclick event doesn&#039;t work. It couldn&#039;t open the pdf file. If I use the regular <BR>&#060;a href .. to open the pdf file, it works fine. Can someone tell me if there&#039;s another way around to display the pdf file in a seperate window? Thanks,<BR><BR>Tam

  2. #2
    McButterson Guest

    Default RE: Use onClick to open new window with PDF file

    if your doing this:<BR>&#060;a href=# onClick="this.html" target=new&#062;<BR><BR>then you actually need to add this<BR> window.event.returnValue=false;<BR><BR>output final =<BR>&#060;a href=# onClick="this.html; window.event.returnValue=false;" target=new&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


More ASP Resources

Resources:
-- ASP Articles
-- ASP.NET Information
-- 4Guys ASP F.A.Q.
-- ASPFAQs.com
-- ASP Coding Tips
-- Related Web Technologies
-- User Tips!!
-- JavaScripts


Development Centers
-- HTML5 Development Center
-- Windows Mobile Development Center
-- Android Development Center
-- Cloud Development Project Center


Development Technology
Check out these sites for more articles, tutorials, FAQs, discussions, and code!
-- CodeGuru.com
-- VBForums.com
-- DevX.com
-- Developer.com
-- HTMLGoodies