페이지를 새로 고치고 퀴즈를 다시 설정하고 단추가있는 해당 앵커로 건너 뛰는 기능을 만들려고합니다.Javascript라는 앵커로 점프 이동
이는 크롬과 파이어 폭스에 대한 잘 작동하지만 IE에서 그냥 처음 지정된 앵커에 새로 고칩니다.
내 코드 :
function resetQuiz(showConfirm)
{
if(showConfirm)
if(!confirm("Are you sure you want to reset your answers and start from the beginning?"))
return false;
window.location.reload(); //this works for chrome and firefox
window.location.hash="mercquiz"; //tried this for IE. doesnt work
}
IE 버전을 ....? – Hamish
'if' 블록에 중괄호를 넣어보세요. 모호한 상황이 될 수있는 ANSI C를 알고 있습니다. – puk
IE 버전은 8.0입니다. – Waiwhetu