Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Printing from a web page via Javascript

Featured Replies

I am updating my cycling clubs website and we show our newsletters in HTML, I have created a CSS format that will print just the newsletter and none of the menus or buttons etc, I have got this line in my HTML:

<a href="java script: window.print()" title="Print this screen">*** PRINT ***</a>

When the user clicks on this link, it pops open the Print Dialog, which is fine, however I was wondering if it was possible to this but activate the "print preview" rather than the Print Dialog using Javascript??

Thanks

TC.

Edited by TomcaT

There are a few ways to do it, but the best I found for cross browser support is available here.

Hope this helps.

  • Author

Thanks mate, nice little work around, not what I was really after but I might just use that!!

Cheers,

TC :thumbup

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.