How to open a new page via url and scroll to div at a new page without using hash sign (#)?

<>

This question already has an answer here:

Answers


You can use jquery to scroll on document ready to your element via its id

$(document).ready(function(){

   var xxx = "<?PHP echo $_GET[xxx]; ?>";
   var windowHeight = $( window ).height();

   // This will smoothly during 1000ms scroll to your element in webpage
   // till it not appear at the middle of screen
   $('html, body').animate({
       scrollTop: ( $("#"+xxx).offset().top - windowHeight )
   }, 1000);
});

Need Your Help

How to know the alive time for a explicit cursor?

oracle cursor

After how much time oracle itself closes an explicitly defined cursor?

LinearLayout not correctly resizing

android android-layout android-widget

I have a LinearLayout and dynamically add three LinearLayouts to it. Each of the LinearLayouts contains a Button. After pressing one of the Buttons I wanted to display a CalendarView in the second-...