473,326 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

how a particular area will be focus on page

i want to focus a particular area in html page,when href link click
Jul 20 '12 #1
3 1863
lyodmichael
75 64KB
Expand|Select|Wrap|Line Numbers
  1. window.onload = function () {
  2.     $("???").focus();
  3. }
Jul 20 '12 #2
gits
5,390 Expert Mod 4TB
that shown code would work when there is a defined $-function as it would be the case with using a javascript-framework like jQuery, and the 'area' (aka: element) that should be focused has a focus-method. Further it would be executed onload.

so the requirement should be a bit more detailed and best would be to give an example - the basics to a solution for this are:

1. retrieve a reference to the element that should be focused
2. call a appropriate method to set focus to that element
3. call that all from the onclick-handler of the link
Jul 20 '12 #3
lyodmichael
75 64KB
i forget the defined function is a textbox :), sorry
Jul 21 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Chris | last post by:
I'm using eight links listed horizontally as a menu on my site. I'm using font-variant:small-caps and they are padded so that they mimic buttons. My gripe is with the way IE handles the focus...
0
by: Craig G | last post by:
i have the routine setup as below. the ctlCollection is populated with Page.Controls. but it only ever brings back 3 controls even though there is more than this on the page the control types it...
2
by: Andy Fish | last post by:
Hi I have quite a simple requirement. at the top of a page I would like to have a fixed-height area (which will be used as a "toolbar") and the main the content will be in the bottom part whch...
3
by: Dave Griffiths | last post by:
Hi all Using VB 2005 I am trying to recreate some existing pages made originally in Dreamweaver to ASP.net. Now I am stuck at the first hurdle. Original code using css div.edges {...
0
by: Joe | last post by:
I tried PageSetup.PaperSize and Application.DisplayAlerts = False but none of these really works. Any ideas/comments will be helpful thanks!
2
by: kumarboston | last post by:
sorry moved to html forum thanks
3
by: John Kotuby | last post by:
Hi all, Just wondering why this would happen. I had created a standalone ASPX page in which 5 controls are wrapped in an UpdatePanel. The idea is Control1 selection populates Control2 then...
8
by: timothyd | last post by:
Hello, I am a true beginner and have no clue what I am doing. With that said, I really only want to know one thing...how do I create and insert an area on the main page of my website that displays a...
4
by: Andy B | last post by:
How do you add javascript to a page from codebehind? I have a method I am working on that has a few conditions in it: 1. if either 1 or both WordTextBox or DefinitionTextBox is empty, show a...
5
by: kashhere | last post by:
Hi every one i need a help from you i had a page in which i had three links in the top of the page and three tables below them. actually those links are related to each of the table when i press...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.