Solved

print page in IE & NS

Posted on 2001-06-12
10
137 Views
Last Modified: 2010-04-09
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
Comment
Question by:egbservices
  • 6
  • 3
10 Comments
 
LVL 12

Expert Comment

by:ahosang
ID: 6184065
What does not show up?
0
 
LVL 2

Author Comment

by:egbservices
ID: 6184199
The button does not show up...
0
 
LVL 12

Accepted Solution

by:
ahosang earned 100 total points
ID: 6184213
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 2

Author Comment

by:egbservices
ID: 6184260
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
 
LVL 2

Author Comment

by:egbservices
ID: 6184278
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
 
LVL 2

Author Comment

by:egbservices
ID: 6184279
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
 
LVL 2

Author Comment

by:egbservices
ID: 6184359
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
 
LVL 9

Expert Comment

by:nimaig
ID: 6184502
In Netscape, the <FORM></FORM> tag is required. If not used, none of the form elements (like inputbox, button, checkbox) would be displayed.
0
 
LVL 2

Author Comment

by:egbservices
ID: 6184539
Thanks ahosang for your speedy reply. After uploading the pages and rebooting it worked fine... never mind about the "action" tag... ;-)
0
 
LVL 12

Expert Comment

by:ahosang
ID: 6185913
Thanks for the A :-)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Find out what you should include to make the best professional email signature for your organization.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question