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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I open link in its own window? 1

Status
Not open for further replies.

nikky0000

Technical User
Jan 12, 2009
64
0
0
HI,
Using DWCS4, winxp

I am linking a few words "click here" with a pdf.

But I want to see the pdf open in a smaller window.

link works fine,but pdf overtakes the page.

I've varied the choices with 'blank, self, parent etc. without luck.

Thanks for the help in advance.

Nicole
 
You could use java script to do this. Instead of:

<a href="test.pdf" target="_blank">Click Here</a>

You could use:

<a href="#" onclick='window.open ("test.pdf","NewWindow","width=600","height=600");'>Click Here</a>

There are many things you can do with javascript links to control the new window. Use google and search 'window.open javascript'. One link i just found was
Hope this helps

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top