Jump to content
  • 0

Focus On The Page


Master

Question

1 answer to this question

Recommended Posts

  • 0

If you would like to have the focus on Result part of the page after paging you can create an anchor and then write a Java Script function to focus on the anchor element.

Here is a good example on w3schools.com which is a good source of Java Script and Styles and lots of other stuff. In this example you will see an anchor with an id like "cb_anchor" is created and a Java Script focus method is called to focus on this anchor:http://www.w3schools.com/jsref/met_html_focus.asp

 

You can create this anchor in the footer of the DataPage and have a java script to call it:

<a href="#" style="color:#ffffff" id="cb_anchor">.</a>

<script>
function f_getfocus() {
var p_url='[@cbHostURL]';

if (p_url.indexOf("PageID=") != -1){
document.getElementById("cb_anchor").focus() ;
}
}
f_getfocus();
</script>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...