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 637221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:36:01+00:00 2026-05-13T20:36:01+00:00

I have a page with dynamic data loaded by some ajax and lots of

  • 0

I have a page with dynamic data loaded by some ajax and lots of javascript.

the page contains a list from which the user can choose and each selected value loads new data to the page.

One of these data items is a url provided to an iframe.

I use jQuery BBQ: Back Button & Query Library to simulate the browser-back behavior.

All works well besides the fact that when i click the back button for the first time the iframe goes back to its previous location and then I need to click back again to make the page go back.

Is there a way to disable the iframe’s back behavior?

  • 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-05-13T20:36:01+00:00Added an answer on May 13, 2026 at 8:36 pm

    I’ve found the answer to my problem guess it could be useful for others out there.

    The problem was with the way i assigned new URLs to my Iframe, i used Jquery so it looked something like that:

    $('#myIFrame').attr('src',newUrl);
    

    When assigning the URL in that manner it adds a new entry to the browser’s list of visited URLs to go back to.
    That wasn’t the desired behavior, so after some googling i found that you can assign a new URL to an Iframe object without adding it to the ‘back-list’, it looks like that:

    var frame = $('#myIFrame')[0];  
    frame.contentWindow.location.replace(newUrl);
    

    This way my back button behave exactly as expected.

    btw, i got my answer from here.

    Hope this was helpful to you as it was to me.

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

Sidebar

Related Questions

I have a web page that displays dynamic data which changes every 2 seconds.
I have a dynamic page built with jQuery. Html pieces are loaded from mustache
I have a page showing results from database in a gridview in Dynamic data
I have just meticulously followed MS instructions for customising a dynamic data page template
I have a dynamic drop down box which calls another PHP page. I've got
I have seen some websites load static data on a page first, and in
I am using ASP.NET dynamic data. In Insert.aspx page, I have a couple of
I have an html page that's built dynamically. Some of the images come from
Hi all I have a problem with anchors and dynamic content loaded thought $.ajax().
I have a page which dynamically loads a section of content via AJAX. I'm

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.