Jul 26, 2008

Button To Print Current Web Page

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..
Pages: 1, 2

free web hosting

Button To Print Current Web Page

jlhaslip
I am not a javascript expert, (far from it, in fact), but simply wanted to suggest that using javascript to 'select' a printer may not be an option, due to the controls about whether the Browser (javascript) can make certain choices for the User.
If javascript can select the default printer, it could also de-select the printer and javascript is not allowed to do various things such as this. it is a designed feature to limit the ability of the web softwares to 'control' your web viewing.

Reply

delivi
I a simple link with this code is enought to print the content of the page

CODE
<a href="java script:print();">Print this Page</a>


This will work in IE, FF & Opera but not in safari

Reply

galexcd
Of course you couldn't print without displaying the box first. If javascript had that kind of power could you imagine the abuse websites could do? Print out 40 pages of pure black while your surfing the net and you wouldn't even know until you hear the printer going.

QUOTE(delivi @ Feb 6 2008, 08:36 AM) *
This will work in IE, FF & Opera but not in safari


It works fine in safari.

Reply

tefanclub
thanks rolleyes.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Recent Queries:-
  1. php page print - 2.94 hr back. (1)
  2. php print button code - 5.07 hr back. (1)
  3. print web page php - 8.99 hr back. (1)
  4. make button to print a page with out the button - 10.96 hr back. (1)
  5. print page php - 11.78 hr back. (2)
  6. php print page - 11.79 hr back. (2)
  7. php print new page - 23.71 hr back. (1)
  8. create print button php - 24.07 hr back. (1)
  9. php print a page automatically - 25.14 hr back. (1)
  10. php print this page - 27.52 hr back. (1)
  11. php print page to printer code - 28.35 hr back. (1)
  12. "print web page" php - 28.40 hr back. (1)
  13. how to print a web page in php - 28.98 hr back. (1)
  14. create print button for html page - 29.64 hr back. (1)
Similar Topics

Keywords : button, print, current, web, page

  1. Multiple Drop Down Menus W/ Submit Button
    (6)
  2. Dynamic Button Size
    (1)
    In my application I have a custom tag that generates all the action buttons that the page needs. My
    problem is that in IE the space between the left side of the button and the image inside the button
    are not consistant. Some buttons have 3 or 4 more pixels of padding on the left side then others.
    This causes my buttons to be too large and hence the area the buttons are generated in stretches too
    far. I could wrap the buttons around to another line or add scroll bars.. but if it will fit in FF I
    think it should fit in IE as well. So my question is can I set the padding....
  3. Refresh Page After Back Button Hit
    (11)
    Hi. I have a page that is dynamically build through DOM manipulation. So, when I browse outside the
    page, and then click back, those dynamically created DOM objects are gone. Since I am also using JSP
    / Servlet technology, I can rebuild this page easily, which I have done. Here is my dilemma. If
    the user leaves the dynamic page, then clicks back on their browser, I need the page they are going
    back to to refresh. I can't figure out how to do this. I've tried using the META tag, but it
    won't do it. Help would be appreciated. Thanks. ....
  4. Submit Button
    (3)
    I have a form on my page. I do not have a submit button, but when I hit enter on my text field, it
    is like I am clicking on a submit button. My page refreshes to the original state, and my values are
    reset. I found this out because I made a submit button and tried it. Is there a way to get around
    this? I am trying to use a javascript that captures the key strokes. That works, but then the submit
    like event still fires after my code runs, nullifying any changes my code has made. html4strict
    Code: CODE 1.      <form name="FormPictureInfo">   2.....
  5. Radio Button
    (4)
    I am trying to maintain the radio button selection on a Submit, but the form refreshes to its
    default selection. BTW, After a Submit is clicked, the radio form stays visible on the top of the
    screen while the query results are displayed on the bottom half of the screen (we're using an
    internal, embedded link). That's when the default selection comes into place. Any help would be
    appreciated. Please respond Kvarnerexpress.....
  6. Substitute Form Button For An Image
    homemade images in forms buttons (3)
    Hi, I have the next formular : CODE  <form method='post'
    action='index.php?mode=2&id=1'>                <input type='hidden'
    name='name' value='Canon Digital Ixus 700'/>                <input
    type='hidden' name='id' value='1'/>                <input
    type='hidden' name='qty' value='1'>                <input
    type='hidden' name='cost' value='40'>                <input
    type='submit' value='Add to ca....
  7. Enter Keypress Submits Wrong Button
    (2)
    Ive got a form, with a submit button on the left and a submit button on the right. By default on the
    enter keypress, the form submits the left submit button, but i want it to submit the right button.
    How would i accomplish this? kvarnerexpress....

    1. Looking for button, print, current, web, page

Searching Video's for button, print, current, web, page
advertisement



Button To Print Current Web Page



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE