scrollbar to iframe through javascript.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Archana

    scrollbar to iframe through javascript.

    hi all,

    can any one tell me how will i set scrollbar to iframe throguh
    javascript.


    please help me asap.


    thanks in advance
  • tomtom.wozniak@gmail.com

    #2
    Re: scrollbar to iframe through javascript.

    On Apr 23, 5:03 am, Archana <trialproduct2. ..@yahoo.comwro te:
    hi all,
    >
    can any one tell me how will i set scrollbar to iframe throguh
    javascript.
    >
    please help me asap.
    >
    thanks in advance
    1) Goto: google.com

    2) Search: iframe scrollbars

    3) Press Button: I'm feeling lucky

    4) Profit!

    -Tom Woz :)

    Comment

    • Archana

      #3
      Re: scrollbar to iframe through javascript.

      On Apr 23, 10:49 pm, tomtom.wozn...@ gmail.com wrote:
      On Apr 23, 5:03 am, Archana <trialproduct2. ..@yahoo.comwro te:
      >
      hi all,
      >
      can any one tell me how will i set scrollbar to iframe throguh
      javascript.
      >
      please help me asap.
      >
      thanks in advance
      >
      1) Goto: google.com
      >
      2) Search: iframe scrollbars
      >
      3) Press Button: I'm feeling lucky
      >
      4) Profit!
      >
      -Tom Woz :)
      hi,
      thanks for reply
      i think you are not getting what i want.

      I want to enable/disbale scrollbar through javascript and not through
      its style at runtime.

      if you have any idea abt it then please help me asap

      thanks in advance

      Comment

      • Bart Van der Donck

        #4
        Re: scrollbar to iframe through javascript.

        Archana wrote:
        >>can any one tell me how will i set scrollbar to iframe throguh
        >>javascript.
        >>>
        >[...]
        >
        I want to enable/disbale scrollbar through javascript and not through
        its style at runtime.
        Only Firefox knows the dynamic 'scrolling'-property for (i-)frames:

        <iframe id="ifr"></iframe>
        <input type="button" value="Enable scrollbars"
        onClick="docume nt.getElementBy Id('ifr').scrol ling = 'yes';">
        <input type="button" value="Disable scrollbars"
        onClick="docume nt.getElementBy Id('ifr').scrol ling = 'no'; ">

        But with a bit of creativity (requires a reload of the iframe):

        <div id="ifrdiv">
        <iframe></iframe>
        </div>
        <input type="button" value="Enable scrollbars"
        onClick="docume nt.getElementBy Id('ifrdiv').in nerHTML =
        '<iframe scrolling=yes></iframe>';">
        <input type="button" value="Disable scrollbars"
        onClick="docume nt.getElementBy Id('ifrdiv').in nerHTML =
        '<iframe scrolling=no></iframe>';">

        Hope this helps,

        --
        Bart

        Comment

        Working...