conditional - Conditionally load different Javascript for different domains on mouse click -


i working on website have lot of external links different websites amazon.in, flipkart.com, snapdeal.com etc.

lets have 3 different javascript files

amazon.js snapdeal.js flipkart.js restall.js 

i want when user clicks on link amazon.in base url amazon.js should load. same others , don't want load js file if base url doesn't match in these three.

-ravi


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -