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.

include "OPEN NEW WINDOW" in url address

Featured Replies

This might be off the subject, as well as a bit odd, but it is something I have been curious about for quite a while.

It is easy enough to include in an html link the code required to have a browser open that link in a new window. But is there a way to include something in an acutal URL address to do this?

Now I don't mean include it in the HTML, but to include some sort of text string in the actual URL address that you type in your browser to force it to open the URL in a new window.

Strange question, I know, just wanted to know if it could be done.

LR

You can do what you want with a simple line of javascript:

<a href="javascript: void(window.open('yourpage.htm'))">open window</a>

There are some additional attributes you can define such as size and whether the browser displays scrollbars, but this should do what you want.

"Now I don't mean include it in the HTML, but to include some sort of text string in the actual URL address that you type in your browser to force it to open the URL in a new window."

Ok, that piqued my curiosity. I tried adding target=blank to a url and of course it did not work.

Normally what I do is just open a second (or third or fourth depending on what I'm doing) browser and enter the url there.

  • Author

Kind of an interesting one. I also tried the =blank in the URL, but like you I could not get it to work.

May be limitations in the browser (security reasons) that wont allow you to call actions like this in a URL address typed directly into the browser.

Obscure reason I was wondering if this could be done. Although I do most of my stuff in Custom Web Publishing, I still like messing around with Instant for simple solutions. There is a LOT in Instant that you can do with the Go To URL command in Filemaker. You can include all sorts of information in the URL. Things like the layout the link goes to, pre-defined find, sort order, related recid information, and so forth. Just wanted to figure out if the URL information could also include opening the link in a new window.

LR

I believe the correct syntax is target="_blank". Try that and see how it goes.

My mistake; I didn't read the originial post correctly. All you have to do is type the following into your address box:

javascript: void(window.open("yourpage.htm"))

  • Author

Holly Molly...

javascript: void(window.open("http://www.address.com"))

Works. Would have never guessed.

You mentioned being able to add items such as window size, scrollbars, and address bar. What format is used to add these into the URL string above?

LR

  • Author

javascript: void(window.open("http://www.address.com"))

Any further details as to how to expand on this to include window size and whether there is a scroll bar or address bar?

LR

  • Author

OK, got this one to work:

javascript: void(window.open("http://www.apple.com","Apple","height=640,width=750,scrollbar=no,menubar=no,toolbar=no,statusbar=no,addressbar=no"))

Again, useful for when using instant web publishing in conjunction with Open URL.

Trying to find a string to add for resize. I tried something simple like resize=yes, but it did not work.

  • Author

Thanks for the link. Useful information. I will add it to my favorites.

LR

Yes Brett, thanks for the code and link. And Larry, thanks for being persistent. I like learning things. This should provide some options.

  • 4 months later...

I'd love to know how you guys got this to work because it sure doesn't work for me! I copied and pasted exactly what was in these posts and got zero results. When I replaced the pasted text with a straight URL it works fine. (This applies to both Mac and PC versions of IE 5.5.)

Could the difference be that I'm trying to connect to a FTP site?

Robert

Re: javascript: void(window.open("ftp://www.clarsys.com.au"))

I just tested this with IE 5.2.1 and Netscape 7.0 on Mac OS X. It worked fine in both.

All the best.

Garry

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.