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.

java:newWindow and [FMP-Link:...]

Featured Replies

Hi,

How would you define the function for java script

<SCRIPT language="JavaScript">

<!--hide

function newwindow()

{

......................

}

//-->

</SCRIPT>

for the following

<a href="javascript:NewWindow('[FMP-Link:r]&-format=magnify.html')"><img....

Thanks,

I would just do this:

<a href="javascript:window.open('[FMP-Link:r]&-format=magnify.html')"><img....

No need for the function.

All the best.

Garry

for advance attributes of the window consider:

window.open('SomeHTML.html','SomeHTML','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=400,height=400')

setting them (them=attributes such as 'status') to "no" or taking them out would deprive your page from those attribues......hide the URL etc.

Also do not use the "<!--hide" hiding. Sometimes it will stop FM WC from processing the JS.

  • Author

THANK YOU ALL GUYS, WORKS PERFECTLY...

Ken

  • 3 weeks later...

shocked.gif where were u Anatoli with this post about 3 months ago!?

u could have saved me a few keybaords and a monitor wink.gif

never thought that commenting things trhough JS would drive FM engine crazy...but now I can blame you for telling me too late! wink.gifgrin.gif

thanx

smile.gif I'll pay you nice cold pints.... of our real stuff smile.gif

BTW, I've discovered this I believe 4 years ago and it is somewhere buried here...

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.