I am building an iframe that will go into my clients' web pages. I need to figure out if the user's browser supports javascript and serve back the either the javascript or non-javascript version of the page accordingly.
What's the best way to determine javascript support in this case? I thought about using javascript to rewrite the iframe url to include a GET variable indicating javascript support. However, that would create two requests to the server, one for the initial load and then another once the javascript rewrites the URL. Is there a way to only submit one request? Or is there a better way to determine javascript support?