• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 150
  • Last Modified:

print page in IE & NS

Hi there
The following input button works in IE
<input type="SUBMIT" VALUE="Print this Page" onclick="print()">
When viewing the page with NS it does not show up!
How can I make it for NS, IE, and other possible browsers.
0
egbservices
Asked:
egbservices
  • 6
  • 3
1 Solution
 
ahosangCommented:
What does not show up?
0
 
egbservicesAuthor Commented:
The button does not show up...
0
 
ahosangCommented:
The button MUST be placed in a form for it to work in NS  - <form><input type="button" VALUE="Print this Page" onclick="print()"></form>

Also notice I've changed it to type="button" since you are not submitting a form.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
egbservicesAuthor Commented:
Initially I had the <form></form> tags. When I tested it locally the computer crashed badly... so I removed it again. On the web it seems to work fine... may be I am just inpatient when testing!!
But doesn't the "form" tag require the "ACTION" attribute.
Does NS not worry about these sort of errors.
0
 
egbservicesAuthor Commented:
Initially I had the <form></form> tags. When I tested it locally the computer crashed badly... so I removed it again. On the web it seems to work fine... may be I am just inpatient when testing!!
But doesn't the "form" tag require the "ACTION" attribute.
Does NS not worry about these sort of errors.
0
 
egbservicesAuthor Commented:
Initially I had the <form></form> tags. When I tested it locally the computer crashed badly... so I removed it again. On the web it seems to work fine... may be I am just inpatient when testing!!
But doesn't the "form" tag require the "ACTION" attribute.
Does NS not worry about these sort of errors.
0
 
egbservicesAuthor Commented:
Initially I had the <form></form> tags. When I tested it locally the computer crashed badly... so I removed it again. On the web it seems to work fine... may be I am just inpatient when testing!!
But doesn't the "form" tag require the "ACTION" attribute.
Does NS not worry about these sort of errors.
0
 
nimaigCommented:
In Netscape, the <FORM></FORM> tag is required. If not used, none of the form elements (like inputbox, button, checkbox) would be displayed.
0
 
egbservicesAuthor Commented:
Thanks ahosang for your speedy reply. After uploading the pages and rebooting it worked fine... never mind about the "action" tag... ;-)
0
 
ahosangCommented:
Thanks for the A :-)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now