Created
March 1, 2017 02:56
-
-
Save tetsunosuke/0aeac1511a19010ff8fdec8a8a4c1d17 to your computer and use it in GitHub Desktop.
特定クラスで囲われたリンクに対してクリックイベントの付与
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
var clsName = "bnr_nenga"; | |
var div = document.getElementsByClassName(clsName); | |
var a = div[0].getElementsByTagName("a") | |
var url = a[0].href; | |
// parse | |
var params = url.split("?"); | |
// さらに & でわける... | |
// これはどこかにロジックが落ちてるはず |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment