So I have this quiz with two separate start files. Then I have javascript that takes the url argument ?type=ohs
and ?type=dls
and display certain images depending on the argument. I then have a complete page. People with the ?type=dls
argument get a link that takes them somewhere else, and people with ohs get just some confirmation text. I want it to be contained on the same complete page, but I am having a hard time trying to figure it out. The javascript I have is:
function go_to_url(page_name) {
location.href = page_name + "?" + location.href.split('?')[1];
}
That is to display images depending on the url argument. How do I create the javascript for the complete page that will display certain text or a link depending on the url arguments ?type=ohs and ?type=dls
?