<DOCTYPE html>
<html>
<head>
<title>scroll</title>
<style>
button.first{
left:50px;
bottom:50px;
position:fixed;
background:red;
color:white;
font-weight:bold;
}
button.second{
left:150px;
bottom:50px;
position:fixed;
background:red;
color:white;
font-weight:bold;
}
p{
width:1500px;
border:1px solid red;
}
</style>
</head>
<body>
<h1>JavaScript : scrollTo & scrollBy</h1>
<p>
India, officially the Republic of India (Hindi: Bhārat Gaṇarājya),[23] is a country in South Asia. It is the
second-most populous country,
the seventh-largest country by land area, and the most populous democracy in the world. Bounded by the Indian Ocean on the south, the
Arabian Sea on the southwest,
and the Bay of Bengal on the southeast, it shares land borders with Pakistan to the west;[f] China, Nepal, and Bhutan to the north; and Bangladesh and Myanmar to the east. In the Indian Ocean, India is in the vicinity of Sri Lanka and the Maldives; its Andaman and
Nicobar Islands share a maritime border with Thailand, Myanmar and Indonesia.
Modern humans arrived on the Indian subcontinent from Africa no later than 55,000 years ago.[24] Their long occupation, initially in varying forms of isolation as hunter-gatherers, has made the region highly diverse, second only to Africa in human genetic
diversity.[25] Settled life emerged on the subcontinent in the western margins of the
Indus river basin 9,000 years ago, evolving gradually into the Indus Valley Civilisation of the third millennium BCE.[26] By 1200 BCE, an archaic
form of Sanskrit, an Indo-European language, had diffused into India from the northwest,[27] unfolding as the language of the Rigveda, and recording the dawning of Hinduism in India.[28]
The Dravidian languages of India were supplanted in the northern and wes
tern regions.[29] By 400 BCE, stratification and exclusion by caste had emerged
within Hinduism,[30]
and Buddhism and Jainism had arisen, proclaiming social orders unlinked to heredity.[31] Early political consolidations gave rise to the loose-knit Maurya and Gupta Empires based in the Ganges Basin.[32] Their collective era was suffused with wide-ranging creativity,[
33] but also marked by the declining status of women,[34] and the
incorporation of untouchability into an organised system of belief.[g][35] In South India, the Middle kingdoms
exported Dravidian-languages scripts and religious cultures to the kingdoms of Southeast Asia.[36]
In the early medieval era, Christianity, Islam, Judaism, and Zoroastrianism put down roots on India's southern and western coasts.[37] Muslim armies from Central Asia intermittently overran India's northern plains,[38] eventually
establishing the Delhi Sultanate, and drawing northern India into the cosmopolitan networks of medieval Islam.
[39] In the 15th century, the Vijayanagara Empire created a long-lasting composite Hindu culture in south India.[40] In the Punjab, Sikhism emerged, rejecting institutionalised religion.[41] The Mughal Empire, in 1526, ushered in two centuries of relative peace,[
42] leaving a legacy of luminous architecture.[h][43] Gradually expanding
rule of the British East India Company followed, turning India into a colonial economy, but also consolidating its sovereignty.[44] British Crown rule began in 1858. The rights promised to Indians were granted slowly,
[45] but technological changes were introduced, and ideas of education,
modernity and the public life took root.[46] A pioneering and influential nationalist movement emerged, which was noted for nonviolent resistance and became the major factor in ending British rule.[47] In 1947 the British Indian Empire
was partitioned into two independent dominions, a Hindu-majority Dominion of India and a Muslim-majority
Dominion of Pakistan, amid large-scale loss of life and an unprecedented migration.[48][49]
India has been a federal republic since 1950, governed in a democratic parliamentary system. It is a pluralistic, multilingual and multi-ethnic society. India's population grew from 361 million in 1951 to 1.211 billion in 2011.[50] During the same time, its nominal per capita income increased from US$64 annually to US$1,498, and its
literacy rate from 16.6% to 74%. From being a comparatively destitute country in 1951,[51] India has become a fast-growing major economy and a hub for information technology services, with an expanding middle class.[52] It has a space programme which includes several planned or completed extraterrestrial missions. Indian movies, music,
and spiritual teachings play an increasing role in global culture.[53] India has substantially reduced its rate of poverty, though at the cost of increasing economic inequality.[54] India is a nuclear-weapon state,
which ranks high in military expenditure. It has disputes over Kashmir with its neighbours, Pakistan and China, unresolved since the mid-20th century.[55] Among the socio-economic challenges India faces are gender inequality, child malnutrition,[56] and rising levels of air pollution.[57] India's land is megadiverse, with four biodiversity hotspots.[58]
Its forest cover comprises 21.7%
India, officially the Republic of India (Hindi: Bhārat Gaṇarājya),[23] is a country in South Asia. It is the second-most populous country, the seventh-largest country by land area, and the most populous democracy in the world. Bounded by the Indian Ocean on the south, the Arabian Sea on the southwest, and the Bay of Bengal on the southeast, it shares land borders with Pakistan to the west;[f] China, Nepal, and Bhutan to the north; and Bangladesh and Myanmar to the east. In the Indian Ocean, India is in the vicinity of Sri Lanka and the Maldives; its Andaman and Nicobar Islands share a maritime border with Thailand, Myanmar and Indonesia. Modern humans arrived on the Indian subcontinent from Africa no later than 55,000 years ago.[24] Their long occupation, initially in varying forms of isolation as hunter-gatherers, has made the region highly diverse, second only to Africa in human genetic diversity.[25] Settled life emerged on the subcontinent in the western margins of the Indus river basin 9,000 years ago, evolving gradually into the Indus Valley Civilisation of the third millennium BCE.[26] By 1200 BCE, an archaic form of Sanskrit, an Indo-European language, had diffused into India from the northwest,[27] unfolding as the language of the Rigveda, and recording the dawning of Hinduism in India.[28] The Dravidian languages of India were supplanted in the northern and wes tern regions.[29] By 400 BCE, stratification and exclusion by caste had emerged within Hinduism,[30] and Buddhism and Jainism had arisen, proclaiming social orders unlinked to heredity.[31] Early political consolidations gave rise to the loose-knit Maurya and Gupta Empires based in the Ganges Basin.[32] Their collective era was suffused with wide-ranging creativity,[ 33] but also marked by the declining status of women,[34] and the incorporation of untouchability into an organised system of belief.[g][35] In South India, the Middle kingdoms exported Dravidian-languages scripts and religious cultures to the kingdoms of Southeast Asia.[36] In the early medieval era, Christianity, Islam, Judaism, and Zoroastrianism put down roots on India's southern and western coasts.[37] Muslim armies from Central Asia intermittently overran India's northern plains,[38] eventually establishing the Delhi Sultanate, and drawing northern India into the cosmopolitan networks of medieval Islam. [39] In the 15th century, the Vijayanagara Empire created a long-lasting composite Hindu culture in south India.[40] In the Punjab, Sikhism emerged, rejecting institutionalised religion.[41] The Mughal Empire, in 1526, ushered in two centuries of relative peace,[ 42] leaving a legacy of luminous architecture.[h][43] Gradually expanding rule of the British East India Company followed, turning India into a colonial economy, but also consolidating its sovereignty.[44] British Crown rule began in 1858. The rights promised to Indians were granted slowly, [45] but technological changes were introduced, and ideas of education, modernity and the public life took root.[46] A pioneering and influential nationalist movement emerged, which was noted for nonviolent resistance and became the major factor in ending British rule.[47] In 1947 the British Indian Empire of its area.[59] India's wildlife, which has traditionally been viewed with tolerance in India's culture,[60] is supported among these forests, and elsewhere, in protected habitats.
</p>
<button onclick="scrollby()" class="first">Scroll By</button>
<button onclick="scrollto()" class="second">Scroll To</button>
<script>
function scrollby()
{
window.scrollBy(30,20);
}
function scrollto()
{
window.scrollTo(0,0);
}
</script>
</body>
</html>
OUTPUT
Comments
Post a Comment