Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

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.

Javascript on browsers: different previews?

Featured Replies

Hey there,

 

I'm working on a website and my question is pretty basic: I'm using the window.open method to open customised windows with javascript. The code i'm currently using is:

 

<a href="#" onClick="javascript:

window.open('file.html','mywindow1','toolbar=0,menubar=0,directories=0,status=0,resizable=0,location=0,scrollbars=0,width=200,height=200,top=201,left=601')">open window</a>

 

It works fine when I preview it on Safari, but on Firefox and Opera the window still shows the url address bar even though the code mentions location=0.

 

Any suggestions on how should I fix this problem?

 

Thanks in advance!

Hey there,

 

I'm working on a website and my question is pretty basic: I'm using the window.open method to open customised windows with javascript. The code i'm currently using is:

 

<a href="#" onClick="javascript:

window.open('file.html','mywindow1','toolbar=0,menubar=0,directories=0,status=0,resizable=0,location=0,scrollbars=0,width=200,height=200,top=201,left=601')">open window</a>

 

It works fine when I preview it on Safari, but on Firefox and Opera the window still shows the url address bar even though the code mentions location=0.

 

Any suggestions on how should I fix this problem?

 

Thanks in advance!

 

Unfortunately the location=0 argument was disabled in firefox (and i presume opera too) for security reasons. You can read the bugzilla here: https://bugzilla.mozilla.org/show_bug.cgi?id=337344 But the short version is, if you can hide the address bar then it'd be possible for you to make your own fake address bar on the top of your webpage showing "https://www.paypal.com" or something and fooling the user into thinking they're at a different site.

 

Sorry I cant be of more help,

 

 

Explosive Designs

Affordable Web Design from Explosive Designs

Create an account or sign in to comment

Account

Navigation

Search

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.