15 Replies - 3476 Views - Last Post: 29 September 2010 - 11:42 PM
#1
How to force open a new window in HTML?
Posted 29 September 2010 - 01:37 AM
How do I open a new window (not tab) in HTML with a specific size?
Replies To: How to force open a new window in HTML?
#2
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 01:41 AM
#3
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 01:45 AM
Generally, it is better to use a modal window (like alight box but for HTML content, much like facebook) rather than an attual browser window. It keeps the user focused on your site and retains the consistancy between your site and the new windows content.
That is unless you have a specific need (popup ad? eek.)
#4
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 04:40 AM
Is modal window a HTML or JS script? This is the first time Ive heard of it
As for my purpose, Im using this as an alternative to a jQuery upload script - havent quite got this code yet, so I decided to use a popup window for now.
#5
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 04:48 AM
#6
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 04:56 AM
#7
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 04:56 AM
Dormilich, on 29 September 2010 - 10:48 AM, said:
Maybe I miss represented what I ment.
Modal window asin an image lightbox but rather than just display an image they can display content/HTML etc.
It dim's the page and presents the desired content ontop.
It is generated in HTML using Javascript/JQuery. Effectivly a popup window/new window within the original.
#8
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 05:00 AM
#9
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 05:14 AM
#10
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 06:25 AM
I dont think I wont be able to use Modal Window
#11
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 06:32 AM
How do I open a new window (not tab) in HTML with a specific size?
The purpose is to use this pop up window for an upload script
#12
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 08:06 AM
I will assume you mean Javascript not HTML seeing as this is posted in the javascript forums...
You can open a link in a new window using HTML, but you cannot define any properties of it. For this, you can use the window.open Javascript method. This allows you to set a good number of parameters for the window to be created including the size of it.
This page describes the method and how to use it
Note that there is a likely hood many browsers popup stoppers will block the window.open method, so you may instead want to instead use a lightbox type div overlay affect instead...
#13
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 06:23 PM
#14
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 09:17 PM
noupe.com is a decent resource
#15
Re: How to force open a new window in HTML?
Posted 29 September 2010 - 11:36 PM
Sorry for the duplicate thread. I though I was suppose to repost this in the JS forum as this is a JS related problem.
Is it possible to reload or redirect to itself a lightbox/modal window?
|
|

New Topic/Question
Reply



MultiQuote







|