How to read URI querry / HTML URL parameter just with Java Script without any PHP? And how to attach the result to a new link with Java Script?

How to read URI querry / HTML URL parameter just with Java Script without any PHP? And how to attach the result to a new link with Java Script?

Hi. As PHP is not supported maybe you can help me on this...

I want to integrate a very specific webshop app into my website. At one page of my site there is a little search-box-form (integrated via iframe) which sends the values via URL parameters to a search-result-site at my website. At this search-result-site there again I have to call an iframe from the webshop. The iframe-source-link of this webshop-site should include the search querries submitted from little search-box-form as URI-querry / URL-parameter.

With PHP my search-result-site looks like the following code. (This code works with PHP). But in my specific case I can´t use PHP. I have to do it with Java Script and plain HTML.

How can I do this with Java Script / without PHP? Is it possible? How to read the URI querry and attach it to the new iframe source link?

  1. <html>
  2. <body>
  3. <?
  4. $params="";
  5. foreach($_POST as $name=>$value)
  6. {
  7. //we propagate all parameters to the search results except the controller page parameter
  8. if ($name!="controllerPage")
  9. {
  10. $params=$params.$name."=".$value."&";
  11. }
  12. }
  13. ?>
  14. <h1>This is a result page</h1>
  15. <iframe name=""
  16. src="http://www.fakewebshop.com/result.html?<? echo $params; ?>"
  17. width="600" height="1070" scrolling="auto" align="top" frameborder="0">
  18. </iframe>
  19. </body>
  20. </html>



      • Sticky Posts

      • Website Accessibility

        I have two sites created in Zoho Sites which are both live. Some questions: 1. Are any of the template themes WCAG 2.1 AA compliant? 2. How do I change the format of a sub-heading in the header section? 3. Is there any way to add focus indication for
      • Unveiling Zoho Sites 2.0 - A new dimension in website building

        Dear Zoho Sites Users, We are thrilled to announce the launch of Zoho Sites 2.0 today! This refresh represents a significant step forward in the capabilities of Zoho Sites and is crucial for creating a lasting and positive impact on our customers' businesses.
      • Visual Editor Webinar

        Join our FREE live webinar to learn how to use the Zoho Sites Visual Editor to easily design your website. Our product specialist will demonstrate how this tool will help you customize your website to suit your requirements.  Register here: https://www.zoho.com/sites/webinars/
      • SEO for your Zoho Sites Website

        Join our live webinar to learn how to use Zoho Sites' SEO tools to boost your website's ranking. Our product specialist will demonstrate everything you need to know about optimizing your web pages to make them search engine friendly. Register here for free: https://www.zoho.com/sites/webinars/
      • Zoho Sites Webinar | Integrations

        Join our FREE live webinar to learn how to integrate both Zoho and third-party products with your Zoho Sites website. Our product expert will demonstrate how to use these integrations to grow, manage, and retain the customers you bring in. Learn how to take your business forward and build stunningly robust and efficient websites. Register here: https://www.zoho.com/sites/webinars/