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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:34:03+00:00 2026-05-10T21:34:03+00:00

I have a frameset with it’s cols attribute set to 50%,50% at the moment.

  • 0

I have a frameset with it’s cols attribute set to ‘50%,50%’ at the moment. I have a toggleView method which is called after a click on an element.

What I aim to do is to change frameset from displaying cols to rows, again divided 50/50.

I have attempted to perform a removeAttribute(‘cols’) on the frameset, while this does remove the ‘cols’ attribute, it doesn’t seem to update on the page (testing live using firebug).

I would then go on to add a rows attribute (is createAttribute and then setAttribute a valid method to do this?) in order to complete the switch.

I’m wondering if this is even feasible seeing as removing the columns does not seem to do anything.

Many thanks for any help.

  • 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. 2026-05-10T21:34:04+00:00Added an answer on May 10, 2026 at 9:34 pm

    This worked fine for me:

    <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Frameset//EN' 'http://www.w3.org/TR/html4/frameset.dtd'> <html>   <head>     <title>A simple frameset document</title>     <script type='text/javascript'>       function onloadHandler() {         setTimeout(function() {           var myFrameset = document.getElementById('myFrameset');           var value = myFrameset.getAttribute('cols');           myFrameset.removeAttribute('cols');           myFrameset.setAttribute('rows', value);         }, 2500);       }     </script>   </head>   <frameset id='myFrameset' onload='onloadHandler()' cols='50%, 50%'>     <FRAME src='page1.htm'>     <FRAME src='page1.htm'>   </frameset> </html> 

    Basically, it swaps 2.5 seconds after the page loads. Let me know if you need anything else or if this doesn’t work for some reason for you. I tested it only in IE7 (which is what I have been developing an application for lately, unfortunately).

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

Sidebar

Related Questions

I have constructed a frameset which is meant to center a webpage in the
I have a html page which contains nested frameset (don't ask why, I'm only
I have a document which has a nested frameset. I need to access one
i have a page which has 4 frames the code is as below <frameset
I have a frameset on my server which hosts a top frame main menu
I have a page in which I want to include frameset, as well as
Say I have 3 frames in a frameset arranged in 3 rows. Frames 1
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have a n-tire web application and search often times out after 30 secs. How
I have two frames in a frameset - frame[0] contains a script that loads

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.