Change .js in google chrome with php/javascript? -


Hello :) Is it possible to set different javascript files in different browsers? I want to change a JS in Chrome (PC version) I know that is possible with CSS, so I tried this code with a .js file, but apparently do not work .. So what am I asking There is a different way to set .js (if this is possible).

  & lt ;? Php if (ereg ("chrome", $ _SERVER ['HTTP_USER_AGENT'])) {echo '& lt; Script src = "js /developr.inputCHROME.js"></script> '; } Else {echo '& lt; Script src = "js / developr.input.js" & gt; & Lt; / Script & gt; '; }? & Gt;  

Thank you in the consultation.

Try

$ user_agent = $ _SERVER ['HTTP_USER_AGENT' ]; If (strokes ($ user_agent, 'chrome')! == incorrect) {echo '

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -