자바질문 > 그누3질답

그누3질답

자바질문 정보

그누보드 자바질문

본문

<script language="JavaScript">
<!--
function mainNavOn(cell, caption) { if (!cell.contains(event.fromElement)) { cell.style.backgroundColor='#3366CC'; window.status=caption;}}
function mainNavOff(cell, caption) { if (!cell.contains(event.toElement)) { cell.style.backgroundColor='#000066'; window.status=caption;}}
function go(url) {document.location = url;}

function isEmpty(sKey) {;sKey2 = unescape((escape(sKey)).replace(/%0D%0A/gi, ""));sCnt = 0;for (var x = 0; x < sKey2.length; x++) {;var y = sKey2.substring(x, x + 1);if (y == " ")  {;sCnt = sCnt + 0;}else{;sCnt = sCnt + 1;};};if (sCnt == 0) {;return true;};return false;}
function checkForm(form) {;if (isEmpty(sKey = form.key.value)) {;alert("Please enter your location by zipcode or city, state.");return false;};}
-->
</script>
위와같이 되어 있는데...지금 자바는 target=_self로 되어 있는것 같은데..새창을  뛰울려면 어떻게 고쳐야할까요?
자바를 잘몰라서 가능한지도 모르겠네요..한번 보시고 가능한지...가능하다면 어떻게 해야하는지좀 알려주세요..
<form action="http://www.koreatimes.com/weather/display_Weather.asp" method="post" onSubmit="return checkForm(this)">
<font face="arial" size="1">귀하의 Zip Code나 City 또는State를 입력하여 주십시요:</font>
<input type=text size=15 name=key value=""> <input type=submit value="Search">
</form>
이것과 연동합니다

감사합니다
  • 복사

댓글 전체

오해하신듯...위스크립트가 결과를 출력할때 target=_self같이 출력된다는 말입니다... (인용)
그러니깐 위의 소스의 결과가 새로운 창을뜨게 하고 싶다는거죠...위의 제가 올린 자바스크립트에서 어느부분을 바꾸면 결과 새창에 나타 나는지 알고 싶은것입니다^^
© SIRSOFT
현재 페이지 제일 처음으로