473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

full-screen popups

Hi - I use a simple JS function to open popups on my site:

<script language="javascript">
<!--
var pathname;
function openit(pathname) {
newWindow = window.open(pathname, 'wndow1',
'resizable=yes,scrollbars=yes');
}
// -->
</script>

My client wants his popups opened to obscure the parent page (behind), ie
the popups open to the size of the parent, or to a "full-screen" size
(maximized).

I searched the 'net and found this attribute which I added after scrollbars
fullscreen=yes
but it seemed to make the popup disappear completely (I'm on a 2 monitor
setup - not sure if that messes things up).

Is there a simple snippet I could ad to my "openit" function that would size
my popup accordingly?

thanks for any help with this

Bob
Oct 24 '07 #1
2 2083
On 24 Oct, 11:51, "Plum Bob" <b...@pluc.comwrote:
Hi - I use a simple JS function to open popups on my site:

<script language="javascript">
<!--
var pathname;
function openit(pathname) {
newWindow = window.open(pathname, 'wndow1',
'resizable=yes,scrollbars=yes');
}
// -->
</script>

My client wants his popups opened to obscure the parent page (behind), ie
the popups open to the size of the parent, or to a "full-screen" size
(maximized).

I searched the 'net and found this attribute which I added after scrollbars
fullscreen=yes
but it seemed to make the popup disappear completely (I'm on a 2 monitor
setup - not sure if that messes things up).

Is there a simple snippet I could ad to my "openit" function that would size
my popup accordingly?

thanks for any help with this

Bob
function mypopup(hRef, )
{
var parentW = window.outerWidth;
var parentH = window.outerHeight;
mywindow = window.open (hRef,
"mywindow","location=1,status=1,scrollbars=1,
width=" + parentW + ",height=" + parentH);
mywindow.moveTo(0,0);
}

Oct 24 '07 #2
Plum Bob wrote:
Hi - I use a simple JS function to open popups on my site:

<script language="javascript">
<!--
var pathname;
function openit(pathname) {
newWindow = window.open(pathname, 'wndow1',
'resizable=yes,scrollbars=yes');
}
// -->
</script>
http://validator.w3.org/
My client wants his popups opened to obscure the parent page (behind),
But I don't, and I'm not alone with this opinion. And lest you forget,
there are tabbed browsing, popup blockers, and disabled or absent script
support. Four get it. [psf 4.13]
PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Oct 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: daking | last post by:
I'm trying to track down a Java performance issue, and believe it may be related to GC behavior. Quick background: j2se app server running Caucho Resin 2.1.12, on RHEL3 with Sun JDK 1.4.2_04,...
0
by: Tracey | last post by:
Hi there, I want to search Japanese characters with Full Text search function. I created a table (tbSearch) for Full-text search on SQL 2000, English Win2k Server. The table contains 4 fields,...
0
by: Denise | last post by:
Hi I have set up a full text index on one of my database tables and created a catalog. Then I started a full population on my catalog and got a message "Population of full text index started...
1
by: onewebclick | last post by:
Is there a way to detect a browser cache is full using javascript or HTML thorugh a web page and inform the user to clear the cache to improve performance of the website. It looks like google's...
1
by: Jimmy Chen | last post by:
Recently I've done a db2 backup and restore/recovery, but the process for recovering the database was different than what I thought to be. here is what I did: DB2 is set in online mode -...
11
by: rh00667 | last post by:
hi all, i'm confused now. how i can get the full path of an application? if myapp is in a directory which belongs to PATH, argv gives me the first token of cmd line, and not the real path of...
5
by: =?Utf-8?B?TWFydHluIEZld3RyZWxs?= | last post by:
Hi there. I posted an earlier issue under the name "That assembly does not allow partially trusted callers" but have now identified what the issue is. As explained before I am working in...
4
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available...
4
by: Brian D | last post by:
In MS SQL 2005 when you do a Full Backup does it also backup and truncate the transaction logs or do I need to back the transaction logs up separately? Thanks. Brian
8
by: Sham | last post by:
I am trying to perform the following query on a table that has been indexed using Full Text Search. The table contains multiple columns than have been indexed. (Below, all xml columns are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.