Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. iFrame and Focus Problem

iFrame and Focus Problem

Scheduled Pinned Locked Moved ASP.NET
helpjavascripttutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Archana New to Dotnet
    wrote on last edited by
    #1

    Hi, I have an .aspx page in which I have an iFrame. When user types something and press F10 Iam saving the records using the iFrame.submit method. Itz all working fine. But I cant bring back the focus to the same Textbox where the focus was when the key (F10) is pressed. Iam using Javascript method .So I have used .Focus() method after the Iframe submission. But that is not working.. Can any one please help me out. How to bring back the focus to the same textbox after submitting an iFrame. Thanks in Advance.

    P 1 Reply Last reply
    0
    • A Archana New to Dotnet

      Hi, I have an .aspx page in which I have an iFrame. When user types something and press F10 Iam saving the records using the iFrame.submit method. Itz all working fine. But I cant bring back the focus to the same Textbox where the focus was when the key (F10) is pressed. Iam using Javascript method .So I have used .Focus() method after the Iframe submission. But that is not working.. Can any one please help me out. How to bring back the focus to the same textbox after submitting an iFrame. Thanks in Advance.

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Could you try it on body load event ?

      Parwej Ahamad R & D with IIS 5.0/6.0

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups