run javascript depending on the active page

后端 未结 0 468
耶瑟儿~
耶瑟儿~ 2021-01-11 11:33

I\'m trying to create a function that depends on the page that is running

for example:

if(gallery.html){condition}
elseif(contact.html){condition}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题