I am designing a support website which requires a "Quick Hide Site" button in a prominent position. I have created one using the following code on plunker
html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Support Site</h1>
<a class="hide" href="http://www.google.co.uk">Quick Hide Site</a>
</body>
</html>
css
.hide{
font-family: Helvetica, Arial, sans-serif;
display:block;
font-size:15px;
color:#ffffff;
text-decoration:none;
text-align:center;
line-height:0.9em;
position:fixed;
top:145px;
right:0px;
background-color:tomato;
width:50px;
padding:8px 3px 6px;
-moz-box-shadow:0 3px 5px rgba(0, 0, 0, 0.25);
-webkit-box-shadow:0 3px 5px rgba(0, 0, 0, 0.25);
box-shadow:0 3px 5px rgba(0, 0, 0, 0.25);
text-transform:uppercase;
z-index:999999;
}
As some people don't use Google and have a different home page set in their browser, can I change the hyper-link in the html coding to get the visitor to go to their home page set in their browser instead of Google?
I have found this response in StockOverflow but where I am not familiar with JavaScript, I don't know how I would use the coding.