Java script command

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a script that I could put as a hyperlink to print,Also is there a source for these commands
 
Hi James,

<a href="javascript:;" onclick="if(window.print)window.print(); return
false;">Print it</a>

Jon
Microsoft MVP - FP
 
James, when you copy and paste code from OE you need to paste it to notepad
first and then into FP. Your link has got garbled
<a
href="a%20href=:javascript:;%22onclick=if(window.print();returnfalse;%22Prin
tit%3E%3C/a">
Go back and paste my link code into Notepad then into FP

Jon
 
Just as a PS - When you copy any code from a newsgroup reply you should
always test it locally before deploying it on your live site. If you're not
familiar with javascript you could end up copying and pasting bad code which
could have a worse effect than just a garbled link

Jon
 
I tryed to assign it to a image with right click then hyperlink.I typed in it code view like I should have and got it than
Is there a way to assign the code to a .gif or any image file
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top