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.
LVL 2
egbservicesAsked:
Who is Participating?
 
ahosangFinance Systems DeveloperCommented:
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
 
ahosangFinance Systems DeveloperCommented:
What does not show up?
0
 
egbservicesAuthor Commented:
The button does not show up...
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
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
 
ahosangFinance Systems DeveloperCommented:
Thanks for the A :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.