Created
March 2, 2019 07:29
-
-
Save zakihiro/20440ffe6936aa04c28695d4a94b4660 to your computer and use it in GitHub Desktop.
【JavaScript】Yahooショッピングの検索窓
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Form_Load() { | |
if (this.searchForm.p.value.length > 0) { | |
target = document.getElementById("clear_button"); | |
target.style.visibility = "visible"; | |
} | |
} | |
function ClearButton_Click() { | |
this.searchForm.p.value = ""; | |
this.searchForm.p.focus(); | |
target = document.getElementById("clear_button"); | |
target.style.visibility = "hidden"; | |
} | |
function ClearButton_KeyDown() { | |
target = document.getElementById("clear_button"); | |
target.style.visibility = "visible"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment