Skip to content

Instantly share code, notes, and snippets.

@zakihiro
Created March 2, 2019 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zakihiro/20440ffe6936aa04c28695d4a94b4660 to your computer and use it in GitHub Desktop.
Save zakihiro/20440ffe6936aa04c28695d4a94b4660 to your computer and use it in GitHub Desktop.
【JavaScript】Yahooショッピングの検索窓
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