두 개의 html 페이지가 있습니다. 하나는 Login.html이고 다른 하나는 index.html입니다. 사용자가 로그인 버튼을 클릭 할 때마다 index.html으로 이동하려고합니다 (그러나 정상적인 href 연결은 아닙니다).Jquery를 사용하여 단일 페이지에서 탐색
색인 페이지는 login.html 코드에도 있어야합니다. 단일 페이지 탐색과 같습니다.
동일한 기능을하는 플러그인이 있습니까?
은 내가 버튼을 클릭하면이 단지의 컨테이너 사업부를 보여줍니다 그것은 부하에 로그인 페이지를 표시하지만, 이<script type="text/javascript">
function hideDiv() {
document.getElementById("container").style.display = 'none';
}
function showDiv() {
document.getElementById('container').style.display = "block";
}
</script>
HTML 페이지
<div class="masthead">
<h3 class="muted">
<sapn class="login-logo"><img src="img/QuadAnalytix_reg350x47.png"/>
</span></h3>
</div>
<div id="loginformcontainer">
<form>
<label> Username:
<input type="text" name="uname">
</label>
<label> Password:
<input type="password" name="pwd">
</label>
<div class="buttons1">
<button type="submit" id="submit" value="Login" class="btn" onclick="showDiv()">
Submit
</button>
<button type="reset" id="reset" value="Reset" class="btn">
Clear All
</button>
</div>
<div>
<div id="container">
//index.html page
</div>
</body>
</html>
시도 두번째 .. 내가 여기서 뭘해야하지?
이것은 혼란 스럽습니다. 왜 그게 필요합니까 ?? – bipen
'onclick = "location.href ('index.html')"'이게 뭔가? – Jai
? 그것의 likeksinglke 페이지 탐색. ? – yeyene