dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: setting focus after submission

  1. #1
    Join Date
    May 2003
    Posts
    10

    setting focus after submission

    Hi,

    I have a submit button which after pressed, goes to the top of the page. I want it to stay on the same place on the web page. Is it possible to do?

    Here is the code:
    echo "<form action='Process.htm?sPId=10&x=".microtime()."' method=post >
    <td align=center valign=middle><font size=-1>
    <input type=submit name=submit value='Completed'>
    <input type=hidden name=sCompleted value='".$x."::".$sReportDataId."'>
    </font>
    </td>
    </form>";

    Can anyone give me an example ?

    Thanks in advance!

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    2,653
    Dave post a really neat trick yesterday for the same topic...search the threads on the forum,you may find it..:-)
    If not then I can probably try to immitate the functionality.

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    We need to start collecting the good ones and the stock answers.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles