Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1427 How can I make the browser justify a page to the right?

You are here: irt.org | FAQ | JavaScript | Scroll | Q1427 [ previous next ]

Try:

<html>

<head>

<script language="JavaScript"><!--
function alignRight() {
    // can't be done
}
//--></script>

<script language="JavaScript1.1"><!--
function alignRight() {
    window.scroll(1000000,0);
}
//--></script>

<script language="JavaScript1.2"><!--
function alignRight() {
    window.scrollTo(1000000,0);
}
//--></script>

<body onLoad="alignRight();">

<pre>
012345678901234567890123456780123456789012345678901234567890123456789012345678901234567899012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
</pre>

<body>
</html>

©2018 Martin Webb