|
function replaceit(s) { // You have not defined s
I don't think that it is possible to replace HTML in that manner. What you can do is show/hide a <div> depending on the browser - but even so that is not a very reliable way of identifying the browser, where the appName can be spoofed. Prefer to use object detection.
All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
|