Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: JS/ECMA script created table question Date: Sun, 24 Nov 2013 11:33:29 -0700 Lines: 193 Message-ID: X-Trace: individual.net ffTTUARv/DYhrAp8wXw7hwqu6XBtzikMiO5ZNXd27RvaqaBDvJ Cancel-Lock: sha1:r0xtX61GuwuGFMXrrwt/MwErNCg= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.javascript:22170 Hi: I have a page which is primarily a n-row table with 13 columns. n- can be 0 thru approx 1000. Six of the columns have a 'Sort' button on the top row whereby the user can 'click'. Then I submit/refresh the entire page and one second later I display the new page showing the table freshly sorted. This table-dominant page is built by JS/ECMAscript from a *long* string of data sent to the client's browser. Problem: The user may wish to 'print' all or part of this table. Question: What can I do in JS to make the page black on white printable --- rather than just pretty and viewable ? FYI: Below is my current working but not cleaned up portion of code where the table is built from a long string with column and row delimiters.. Thanks for suggestions ! -Mel Smith ***** Current JS code for screen viewing of table *****