1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Textarea and cursors - how to disable active cursor

Discussion in 'PHP' started by webbusiness23, Jul 6, 2009.

  1. #1
    Hi,

    i have the following problem:


    I have a site with an iframe on it.
    The iframe is situated on the bottom of the page.

    When a user hits the F5 key (for refresh) or he's just entering this page where the iframe is, the page goes down to a textarea which is situated on my iframe, with its cursor active.

    1. How can i make the page stay at its top after the refresh is done?

    2. Is my problem generated by the fact that the textarea's cursor is active all the time?

    Thanks!
     
    webbusiness23, Jul 6, 2009 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    Is there a link to the issue?

    Do you have any code set to make the browser auto-focus on this area?
     
    crath, Jul 6, 2009 IP
    webbusiness23 likes this.
  3. webbusiness23

    webbusiness23 Member

    Messages:
    153
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #3
    Yes, the browser auto-focused on the respective textarea because of a javascript function called focus().


    I removed that part of the code and everything is running as i wanted.

    Thanks for the suggestion!
     
    webbusiness23, Jul 6, 2009 IP
  4. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #4
    No problem! So now, it works correctly, but does not automatically scroll down to the text area, right?
     
    crath, Jul 6, 2009 IP