Сообщение от crystaltrumpet
|
оно НЕ РАБОТАЕТ
|
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$(function() {
$('button').click(function() {
location.href += '#as';
alert($('p:target').text())
})
});
</script>
</head>
<body>
<button>GO</button>
<p id="as">Text</p>
</body>
</html>