Skip to content

Commit

Permalink
Fix anchor link to 'Targeting media types' (#16833)
Browse files Browse the repository at this point in the history
The link for `@ media print` pointed to the non-existent anchor 'media_types' on the 'Using media queries' page. I updated the `@ media print` link to the 'Targeting media types' anchor.
  • Loading branch information
simonvarey authored Jun 1, 2022
1 parent 2e46d74 commit 428d7fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/window/beforeprint_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ browser-compat: api.Window.beforeprint_event

The **`beforeprint`** event is fired when the associated document is about to be printed or previewed for printing.

The {{domxref("Window.afterprint_event", "afterprint")}} and `beforeprint` events allow pages to change their content before printing starts (perhaps to remove a banner, for example) and then revert those changes after printing has completed. In general, you should prefer the use of a [`@media print`](/en-US/docs/Web/CSS/Media_Queries/Using_media_queries#media_types) CSS at-rule, but it may be necessary to use these events in some cases.
The {{domxref("Window.afterprint_event", "afterprint")}} and `beforeprint` events allow pages to change their content before printing starts (perhaps to remove a banner, for example) and then revert those changes after printing has completed. In general, you should prefer the use of a [`@media print`](/en-US/docs/Web/CSS/Media_Queries/Using_media_queries#targeting_media_types) CSS at-rule, but it may be necessary to use these events in some cases.

## Syntax

Expand Down

0 comments on commit 428d7fb

Please sign in to comment.