Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<div onclick="window.location.href = 'http://web-tourist.net';">
This is a div
</div>
<div id="header" onclick="location.href='http://www.example.com';" style="cursor:pointer;"> </div>
#header {
width:300px;
height:100px;
border: solid #EEE;
}
#header a {
display:block;
width:100%;
height:100%;
text-decoration:none;
}
#header a:hover {
text-decoration:none;
background-color: #EFEFEF;
}
<div id="header"><a href="#"></a></div>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("div[href]").click(function () {
window.location = $(this).attr("href");
});
});
</script>
<div href="http://www.google.com">
My Div Link
</div>
<div onclick="window.location.href = 'http://web-tourist.net';">
This is a div
</div>