I am creating an IFrame that will go to my client's web pages I need to understand that the user's browser is javascript And provides the JavaScript and non-JavaScript versions of the page accordingly.
What is the best way to determine JavaScript support in this case? Javascript was thought to use Javascript to rewrite the IETRAME url to indicate support. However, it will create two requests on the server, one for the initial load, and once again the Javascript URL will be rewritten. Is there a way to submit only one request? Or is there a better way to determine JavaScript support?
You & lt; Why not choose Noscript
for the tag?
& lt; Script & gt; Document.write ('& lt; iframe src = "javascript_enabled_page.html" & gt; & lt; / iframe & gt;'); & Lt; / Script & gt; & Lt; Noscript & gt; & Lt; Iframe src = "javascript_disabled_page.html" & gt; & Lt; / Iframe & gt; & Lt; / Noscript & gt;
Comments
Post a Comment