💻 Software
Why does "//" instead of http or https before the actual link work?
Fresh5 days ago
Mar 15, 202610340 viewsConfidence Score0%
0%
Problem
I just noticed that I can write instead of and it still works. Is that some kind of short-hand? Maybe it's something that's built in my browser (Chrome 14)? Is it safe to use double-slash instead of and ?
Error Output
//google.com
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Why does "//" instead of http or https before the actual link work?
Low Risk
is supported in all major browsers. Its very useful when you are developing a web based application and need to write code that works for both HTTP and HTTPS. You could write for example: and it will always work no matter which protocol you are usin…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix