473,387 Members | 1,669 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,387 software developers and data experts.

Suppressing URL information

I want to open a popup window and the window should not display the URL
information anywhere on the browser. Can you suggest.

Jul 23 '05 #1
7 1730
chil wrote:
I want to open a popup window and the window should not display the URL
information anywhere on the browser.
Can't be done.
Can you suggest.


Redesign your app/site so that it doesn't matter.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #2
chil wrote on 18 jul 2005 in comp.lang.javascript:
I want to open a popup window and the window should not display the URL
information anywhere on the browser. Can you suggest.


If you just mean "on the browser window"

<script type=text/javascript>
myURL = 'my url here'
window.open(myURL,'','height=500')
</script>

the <title> has to be defined in the pop-up

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #3
Thanks a lot Evertjan. Now my question is how do I give different name
in the title. Can you suggest. I will explain clearly here. I want to
open www.yahoo.com
Now myURL is www.yahoo.com
I can set all parameters such as height, Location=no.
Now the the URL is coming on to the title. So How do I rename this. If
you can suggest I am thankful. Actually it is a business requirement.

Jul 23 '05 #4
chil wrote on 19 jul 2005 in comp.lang.javascript:
Thanks a lot Evertjan. Now my question is how do I give different name
in the title. Can you suggest. I will explain clearly here. I want to
open www.yahoo.com
Now myURL is www.yahoo.com
I can set all parameters such as height, Location=no.
Now the the URL is coming on to the title. So How do I rename this. If
you can suggest I am thankful. Actually it is a business requirement.


I'm sorry but this is not email, but usenet, and I will not answer
postings, that are not properly quoted while following up earlier posts.

Using Google groups instead of a usenet agent is bad practice,
because it incents you to reply like you did.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #5
ASM
chil wrote:
Thanks a lot Evertjan. Now my question is how do I give different name
in the title. Can you suggest. I will explain clearly here. I want to
open www.yahoo.com
Now myURL is www.yahoo.com
I can set all parameters such as height, Location=no.
Now the the URL is coming on to the title. So How do I rename this. If
you can suggest I am thankful. Actually it is a business requirement.

<script type="text/javascript">
foo = false;
function openUrl(myURL,myTitle,width,height) {
if(!(foo) || foo.closed) foo = window.open();
foo.resizeTo(width,height);
foo.location.href = myURL;
var left = parseInt((screen.width-width)/2);
var top = parseInt((screen.height-height-60)/2);
foo.moveTo(left,top);
// changing title will be not allowed if from another domain
setTimeout('foo.document.title = \''+myTitle+'\';',3000);
foo.focus();
}
</script>

<p><a href="http://www.yahoo.com" target="_blank"
onclick="openUrl(this.href,'My Yahoo to me to me',500,420);
return false;">Yahoo</a>
<p><a href="http://www.google.com" target="_blank"
onclick="openUrl(this.href,'My Google to me to me',500,420);
return false;">Google</a>
<p><a href="#" target="_blank"
onclick="openUrl(this.href,'my test to me to me',500,420);
return false;">test</a>

If JavaScript is disabled Yahoo will be open in a new standard window
(if new windows are enabled)

<form style="display:none" id="search" name="search">
<select onchange="var i = this.selectedIndex;
if(i==0) alert('make a choice in list')
else
openUrl(this.options[i].value,this.options[i].text,500,420);">
<option selected="selected">Search in motors</option>
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.google.com">Google</option>
</select>
</form>
<script type="text/javascript">
document.forms['search'].style.display='block';
</script>

if JS disabled (and css enabled) -> no list

--
Stephane Moriaux et son [moins] vieux Mac
Jul 23 '05 #6
Thank you ASM .

Jul 23 '05 #7
No worries. Thanks

Jul 23 '05 #8

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

Similar topics

5
by: Phil Powell | last post by:
How do I suppress the lines PHP normally delivers to stdout (your browser) if I am doing command-line PHP? e.g. stuff.php: <? echo 'Hello World'; ?> Calling it from a Red Hat 7.3...
3
by: Jim | last post by:
Hi I have foo.xml: <file> <area1> <name>John</name> <age>22</age> </area1>
8
by: chil | last post by:
Hello All, I want to open a popup window and the window should not display the URL information anywhere on the browser. Can you suggest. Thanks in advance, Chil
6
by: snacktime | last post by:
I've searched and searched and have not found a solution to suppress the margin on form or href tags so that there is no space before or after the tag. The only way I have found to do this is to...
40
by: Dave Hansen | last post by:
Please note crosspost. Often when writing code requiring function pointers, it is necessary to write functions that ignore their formal parameters. For example, a state machine function might...
2
by: stevie.greenslade | last post by:
'Lo all. I have a simple question I'd like help on. :] How, if at all, would one go about suppressing the console window that flashes up when you make at system() call in your C++ program? I'm...
18
by: R. P. | last post by:
I wonder how to indicate in a stylesheet that character entities in an element are not to be transformed as would be the case in XML-to-XML transforms. I want to keep those &amp; &quot; and other character...
1
by: janefield2002 | last post by:
Hi there, I have a client-server application that periodically connects to an Access database on a network. My netowrk sometimes goes down and there is an ODBC failure to connect. This results...
5
by: Don Li | last post by:
Hi, A web app server package that I'm using includes a bunch of open source UI components (heavy with javascripts). Inevitably it has bugs, e.g. "undefined" is null or not an object. This...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
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...

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.