Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9224677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:22:55+00:00 2026-06-18T04:22:55+00:00

Page A : Any page. Page B : Page that has Iframe on it

  • 0

Page A : Any page.

Page B : Page that has Iframe on it

What I would to do is something like this.

There is a link on Page A to Page B, Something like: “abcd.com/thewall?parameter”

When they click the url to “abcd.com/thewall” the site loads like it always does with a set src for the iframe. But when they click the url with the parameter like “abcd.com/thewall?parameter” the Iframe will automatically load a different src into that iframe.

I’ve found many references to do stuff LIKE this on here but none of them do exactly what is described above.

Also I don’t know if its possible but would it be able to also when that new url is loaded into the src of the iframe via the parameter call have it auto scroll to the iframe?

I basically know 0 about JavaScript, so please keep it simple so i can understand.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:22:57+00:00Added an answer on June 18, 2026 at 4:22 am

    Parse the query string like this and set the iframe’s src onDOMReady. Since jQuery is what I’m most familiar with, that’s what I’ll use:

    function getQuerystring(key, default_) {
        var regex = new RegExp("[\\?&]"+key+"=([^&#]*)"), qs = regex.exec(window.location.href);
        if (default_==null) default_=""; 
        key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
        if(qs == null) return default_;
        return qs[1];
    }
    $(document).ready( function() { 
        $('iframe').attr('src', getQuerystring('iframesrc', 'virool')); 
    });
    

    This uses a modified version of the getQuerystring function from the linked page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I have this webpage that is the header on any page you go
When i will touch download link in any web page is iphone downloads that
Is there any way to check that my page is not opened in another
Is there any way of ajaxifying Drupal so that page reloads are not reloads
Is there any way to determine a page numer (in paged list), that contains
There is a webpage i am making a greasmonkey script for. This page has
i've setup a application that has a path to: www.some_page.com/index.php on the page i
I've got a site http://abc.com/support , which uses an iFrame that has a source
I have 10 checkboxes that are scattered throughout a page and if any one
Basically I have a single page on my site that I want any php

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.