Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

onload go to anchor

Featured Replies

I need my page to jump to an anchor after the page loads. The anchor number is generate in FPM, the onLoad script is DW's - Doe anyon have a clean solution that word on explore and safari

---------

function MM_goToURL() { //v3.0

var i, args=MM_goToURL.arguments; document.MM_returnValue = false;

for (i=0; i<(args.length-1); i+=2) eval(args+".location='"+args[i+1]+"'");

}

//-->

</script>

</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_goToURL('content','#[FMP-Field:a_RandomAnchor]');return document.MM_returnValue">

u have to specify whihc page will be the one with acnhors:

<body onLoad="MM_goToURL('parent','ResutlsPage.html#FMP-Field-Value-that-holds anchor name');return document.MM_returnValue">

but remember that Anchors have to ANCHORED meaning that they have to exsit and be named in the page so probably ur looking into some JS on that ResultsPage ( or any other way u generate anchors)

Response.Write("<a name="FMP-Field-Value-that-holds anchor name"></a>")

All the best!

This one works for me:

<style>

#one { position: absolute; top: 100px; left: 10px; width: 200px; height: 400px; background-color: blue }

#two { position: absolute; top: 800px; left: 10px; width: 100px; height: 200px; background-color: red }

</style>

</head>

<body onload="document.location='#anchorbottom';">

Hello World

<div id="one">The Div</div>

<div id="two">After the DIV<b>

<a name="anchorbottom">At the bottom</a>

</div>

</body>

Good Luck.

Garry

  • Author

Nice! - thanks guys

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.