Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example JS to Document: referrer #33106

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

swierczek
Copy link

Description

Add an example to clarify the usage of document.referrer.

Motivation

The page was missing an example of how to correctly call this. Any code on this page made it seem like Document.referrer was the correct JavaScript, when that returns undefined because it should be document.referrer.

image
Add example to clarify the JS should be document.referrer, not Document.referrer
@swierczek swierczek requested a review from a team as a code owner April 15, 2024 16:33
@swierczek swierczek requested review from Elchi3 and removed request for a team April 15, 2024 16:33
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Apr 15, 2024
add newline before code snippet

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@swierczek swierczek changed the title Update index.md Apr 15, 2024
Copy link
Contributor

Copy link
Collaborator

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @swierczek !

files/en-us/web/api/document/referrer/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/document/referrer/index.md Outdated Show resolved Hide resolved
swierczek and others added 2 commits April 15, 2024 13:02
Co-authored-by: wbamberg <will@bootbonnet.ca>
Co-authored-by: wbamberg <will@bootbonnet.ca>
@bsmth bsmth requested a review from wbamberg July 15, 2024 16:07
@Elchi3 Elchi3 removed their request for review July 17, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed
2 participants