내가베이스 버튼의 값을 내 창을 재려고하지만 난 직장 얻을 수는"message": "잡히지 않은 ReferenceError : myFunction이 정의되지 않았습니다"?
이
<!DOCTYPE html>
<html>
<body>
<p>Click the button to change the location of the first iframe element (index 0).</p>
<button class="godd" onclick="myFunction()">Try it</button>
<br>
<br>
<iframe src="http://localhost:8005/?xform=http://127.0.0.1:8080/output_path4fff"></iframe>
<iframe src="http://localhost:8005/?xform=http://127.0.0.1:8080/output_path4fff"></iframe>
<script src="http://code.jquery.com/jquery-1.11.0.min.js">
$(document).ready(myFunction() {
var Vp = $('.godd').eq(0).text();
window.frames[0].top.location.href = 'http://' + Vp;
})
</script>
</body>
</html>
도와주세요 내 코드입니다
checkout this http://stackoverflow.com/questions/15171008/onclick-not-working-with-button – ricky