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!

Prenting A Link Printing

Status
Not open for further replies.

RebelFox

Programmer
Jun 16, 2002
62
GB
Is there a way of preventing a link printing
from an html page?

I have a page which lists telephone details along
with hypertext links to other pages for 'add', 'delete' and 'change' actions. If a user prints my list page from the normal browser 'file-print' option, I would like to hide the links so they do not appear on the print.

Example link:-
<A HREF=&quot;mypage&quot;><IMG SRC=&quot;myimag.gif&quot; BORDER=0>

Is there a simple way of doing this?
 
You can add an option that says &quot;printer friendly&quot; which is pure text...some ASP scrips give you that capabilties...
But one thing confuses me, the hypertext link are viewed on the browser screen?? Meaning in the example you gave, the browser actually shows the <a href> tag instead of just showing the link?? I have not failed; I have merely found 100,000 different ways of not succeding...
 
I used the wrong termonology.
The <A REF> works fine and shows the text or image that a user clicks on to activate the hidden web link.
In other words its just like the 'Support Tek Tips' link at the top of this page. I just don't want it to appear on my printed version of the page.
 
The only way that I can think of is use an ASP &quot;printer friendly&quot; script, kinda like what hotmail uses...you can twean on out all the uncessary items for printing...
Go to and look there for a script (it also has a demo so you can see what it looks like)... Forget the Nobel Peace prize, I just want to take over the world!! [hammer]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top