# JavaScript window.opener ###### tags: `JavaScript` `oponer` ## 開啟新視窗,如果網址一樣就不在重複開啟新的視窗 需要使用第二個參數,並帶上String,這樣只要是開新的視窗都會是同一個 ``` window.open(url,"SameWindow"); ``` ## 問題: 1. 為什麼QRcode的掃描網址也有這個效果??
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up