Solved

print page in IE & NS

Posted on 2001-06-12
10
139 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: 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!

 
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Title # Comments Views Activity
CSS style formatting? 2 55
Anyone familiar with PhotoSwipe? 3 38
Blending HTML output from R Studio into a ASP.Net/C# project 4 45
title attribute 5 33
This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

740 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