0

I have a SP2010 web part page (/sitepages/test.aspx) with a number of Content Editor Web Parts. Each CEWP has a content link property set to a URL such as /subsite/SiteAssets/task.html?code=XXY. The task.html page has JavaScript to display some information based on the code passed in the URL parameter.

The problem is that I cannot seem to get the URL parameter from task.html. The JavaScript window.location references test.aspx, not task.html.

So the question is, how do I get the URL parameter from task.html using pure javascript, not JQuery.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.