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

  • SEARCH
  • Home
  • 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 8489919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:57:40+00:00 2026-06-10T21:57:40+00:00

For example I have some link in index.html: <a href=message.html>Go to message page</a> In

  • 0

For example I have some link in index.html:

<a href="message.html">Go to message page</a>

In other page, iframe.html I have one iframe:

<iframe id="iframe" src="profile.html" frameborder="0" scrolling="no"></iframe>

Can it be done so that, when I click ‘Go to message page’ link, it redirect me to iframe.html and change iframe src to message.html?

  • 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-10T21:57:41+00:00Added an answer on June 10, 2026 at 9:57 pm

    A simple Solution:

    your link in index.html should look like this:

    <a href="iframe.html?message.html">Go to message page</a>
    

    In iframe.html do something like this:

    $(function () {
        var url = window.location.href;
        var QueryStr = url.split('?')[1];    
        $('#iframe').attr('src', QueryStr);
    });
    

    Hope this will be your answer. Thanks!

    SEE DEMO

    See pages:

    • Profile Page: http://jsfiddle.net/akhurshid/8NfMy/
    • Message Page: http://jsfiddle.net/akhurshid/V3Qjp/
    • Iframe page: http://jsfiddle.net/akhurshid/YdXKK/
    • Main (index) Page: http://jsfiddle.net/akhurshid/n7wNj/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some link with parameter: <a href=index.php?page=home&lang=en class=flag> <img src=./images/flags/en.png class=flag_on alt=en title=en>
I have the following in an XML file: <entry> ... <link href=http://www.example.com/somelink /> ...
I have some example target = $this.attr('data-target') || e.preventDefault() || (href = $this.attr('href')) &&
I have some text stored in a variable which contains some HTML. For example,
What is the difference between proxy and reify? I have some example code: (.listFiles
I have some URLs, like http://www.example.com/something?param1=value1&param2=value2&param3=value3 and I would like to extract the parameters
I have some null struct, for example: struct null_type { null_type& someNonVirtualMethod() { return
I have some String[] arrays, for example: ['a1', 'a2'] ['b1', 'b2', 'b3', 'b4'] ['c1']
I have some MP3 files that are named with a particular syntax, for example:
I have some strange behavior redirecting stdout and stderr from s3cmd. For example: $

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.