Master Posted October 11, 2013 Report Share Posted October 11, 2013 I want to have the focus on the report page after paging. Any ideas how I can accomplish this? Quote Link to comment Share on other sites More sharing options...
0 MayMusic Posted October 11, 2013 Report Share Posted October 11, 2013 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> Quote Link to comment Share on other sites More sharing options...
Question
Master
I want to have the focus on the report page after paging. Any ideas how I can accomplish this?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
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.