Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
813 views
in Technique[技术] by (71.8m points)

how open chrome settings in new tab using javascript

I want to open "chrome://settings/contentExceptions#media-stream" in a new tab using JavaScript window.location.href="chrome://settings/contentExceptions#media-stream" or onclick="window.top.location='chrome://settings/contentExceptions#media-stream'" doesn't work any ideas ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You are not allowed to load local resources, your best bet would be to inform the user how to reach that page in a nice way.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...