473,624 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

title of popup whilst loading

Hi,

I use the following page code to open a popup window - it works OK, but
whilst the popup is loading you can see the URL in the title of the popup
until it's fully loaded and then the title changes to whatever I put in the
<TITLE></TITLE>

Any way to force the popup to display the <TITLE> whilst the page loads?

Thanks

<html>
<head>
<TITLE>David' s work site</TITLE>
</head>

<script language="JavaS cript" type="text/javascript">
function popup() {
window.open( "http://mysite/index.asp" ,
'newwin','toolb ars,menubar,scr ollbars=yes,too lbar=1' ) ;
}
</script>

<BODY onLoad="javascr ipt:popup()">
</body
</html>
Jul 20 '05 #1
1 3527
David wrote:
Hi,

I use the following page code to open a popup window - it works OK, but
whilst the popup is loading you can see the URL in the title of the popup
until it's fully loaded and then the title changes to whatever I put in the
<TITLE></TITLE>

Any way to force the popup to display the <TITLE> whilst the page loads?

Thanks

<html>
<head>
<TITLE>David' s work site</TITLE>
</head>

<script language="JavaS cript" type="text/javascript">
function popup() {
window.open( "http://mysite/index.asp" ,
'newwin','toolb ars,menubar,scr ollbars=yes,too lbar=1' ) ;
}
</script>

<BODY onLoad="javascr ipt:popup()">
</body
</html>


No. All you can do is include <TITLE> tags on the page being opened as early as
possible and hope the browser displays it as soon as it sees it.

Besides, the user can always get the URL of the popup anyway, or they can
bookmark it directly, both of which would reveal the URL to the user.

Also, you don't need onload="javascr ipt:methodCall( );", onload="methodC all();"
will work just fine.

--
| Grant Wagner <gw*****@agrico reunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #2

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

Similar topics

7
4011
by: Nick | last post by:
I've a main html file which will pop up a window with a image. In the main Window, I have the following code: w = window.open('popup.html') alert(w.document.images.length) And the alert shows 0. However, there is a image in the popup window and an alert(document.images.length) in the popup html file shows 1.
4
2422
by: VR | last post by:
First, greetings to everyone :) I'm doing a university seminar & I've encountered a problem. I have a gallery with thumbnails linked on pictures. What I want is popup to be opened with dimensions of linked picture after clicking on a thumbnail. I found javascript which is compatible with IE, Firefox & Opera but I can't get it to work. All I get is this http://www.justfonts.com/tini/problem.html (thumbnail dissapeared).
8
41575
by: Orloff | last post by:
Hi, on most (all?) browsers, when you put the pointer on a <a href="..." title="popup text">this is a link</a> without clicking on the link, there is a popup caption with the "popup text". I would like to achieve the same with some text that is not a link. I realized that I could simply make it <a title="popup text">this is just some text</a>
3
2191
by: Andy Dingley | last post by:
We've all seen this structure many times: <ul> <li><a href="..." >Click here</a></li> <li><a href="..." >Click here</a></li> </ul> Now it's obvious good practice to have sensible link texts, and also sensible use of title attributes on either the<a> or <li> elements. What's a good rule of thumb for these attributes ?
2
1529
by: Jean Pierre Daviau | last post by:
Hi, Can we apply sss on the title of a link? a:title {color: blue; } .... <a href="javascript();" title="popup text">this is a link</a> --
2
2372
by: Mark | last post by:
Hi all, I have a pop-up which has several command buttons which allow users to run a few stored query's. Having the query's displayed as report is not an option due to several reasons. My problem is that I want to hide the popup whilst the results of the query are displayed. I can get the form to hide ok with the On_Click event of each command button, it's un-hiding it that's my problem. Can anyone offer any help on this?
0
435
by: ChrisB | last post by:
I'm attempting to open a new window from a LinkButton in a DataGrid. I can set a session variable in the ItemCommand event for the LinkButton like so: // this is used to handle the ItemCommand event private void itmCmd(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { string itemGFNo = ""; if (e.CommandName == "EditTask")
1
1227
by: rita d | last post by:
Hi everyone, On my site i have a reader which downloads a catalogue. Whilst this is downloading a preloader bar displays and the page is basically left blank. I would like to use this blank space as advertising for my clients. So i was wondering is there away to display an image which the catalogue is downloading in the background and once the catalogue is fully downloaded to remove this image. Thanks Rita
3
1164
by: psvpreddy | last post by:
In my application, while loading the page, the title of page is displaying total filepath. Even if explicitly set the title also, before loading the page , path is displayiing as title. once the page loaded , then only the customized title is displaying. Could you please help me out,that how could we change the title of the page , before loading the page?
0
8240
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8175
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8680
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8625
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8336
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8482
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7168
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6111
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2610
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.