javascript help
#1
javascript help
anyone here know javascript well?
I need help with a minor problem. I have a script that is set to open a window with no address bar. however, in the window's titlebar it states the URL first then the Title code.
I cannot seem to find or remember how to code it such that it does not
do this. Does anyone know why it is happening or what I can add to the
script to change it?
heres the code im using:

thanks guys.
I need help with a minor problem. I have a script that is set to open a window with no address bar. however, in the window's titlebar it states the URL first then the Title code.
I cannot seem to find or remember how to code it such that it does not
do this. Does anyone know why it is happening or what I can add to the
script to change it?
heres the code im using:
Code:
<script language="javascript" type="text/javascript">
<!--
function MyOpenWindow() {
var MyURL = 'http://www.url.com/popup';
var MyWindowName = 'popup';
var MyWindowOptions = 'width=800,height=640,toolbar=yes,scrollbars=yes,address=yes,location=no,titlebar=no,fullscreen=yes';
window.open(MyURL, MyWindowName, MyWindowOptions);
}
// -->
</script>

thanks guys.
#2
there's probably a javascript solution tho this, but it might be tough to find. at least i didn't find one in a quick search.
if you don't have control over the page being opened, you could create a new webpage, set that other site to open within an iframe and then assign a title to the webpage you created.
if you don't have control over the page being opened, you could create a new webpage, set that other site to open within an iframe and then assign a title to the webpage you created.
#5
Man, I meant to pull this up and try it at work today & totally forgot. I bet I can figure it out as I'm doing the same thing on a couple pages at work. Shoot me a pm tomorrow if I don't reply here again.
#6
so do you want to blank out the title on the new window?
try changing your window.open line to this
var MyWindow = window.open(MyURL, MyWindowName, MyWindowOptions);
and after that line add
MyWindow.document.title = ''; //if you want a different title you can add it inside the ''
this *should* work, but I think it may require a delay in between opening the window and setting the title. When I step through it in debug mode it works, as long as the popup has finished loading. If I run it real time it throws an error.
edit I played around with it a bit more, got it to work with a 1 second delay. Threw up a temp page here see if it works & check out the source.
try changing your window.open line to this
var MyWindow = window.open(MyURL, MyWindowName, MyWindowOptions);
and after that line add
MyWindow.document.title = ''; //if you want a different title you can add it inside the ''
this *should* work, but I think it may require a delay in between opening the window and setting the title. When I step through it in debug mode it works, as long as the popup has finished loading. If I run it real time it throws an error.
edit I played around with it a bit more, got it to work with a 1 second delay. Threw up a temp page here see if it works & check out the source.
Last edited by tulsa_97SR5; May 17, 2006 at 06:31 AM.
#7
im still getting the URL then it changes the extension to "hey there lee" 
thanks Tulsa for trying... I am trying everything under the sun right now and none of it works or makes sense!

thanks Tulsa for trying... I am trying everything under the sun right now and none of it works or makes sense!
Trending Topics
#10
well this is how it works. we're setting up an education one-stop-shop basically.
in doing this, we're trying to cover the education sources as much as possible. we pay the sources to allow us free reign to their content and we monitor access based on a login to a portal on our end, which allows them straight in to the providers content.
now.... since we want to hide the source, it doesnt help if their URL is plastered at the start of the titlebar.
thats all it is...
in doing this, we're trying to cover the education sources as much as possible. we pay the sources to allow us free reign to their content and we monitor access based on a login to a portal on our end, which allows them straight in to the providers content.
now.... since we want to hide the source, it doesnt help if their URL is plastered at the start of the titlebar.
thats all it is...
#11
I would have thought that either titlebar=no or location=no would have done the trick. Try executing it directly in the window.open() statement (instead of by variable) to see if it worked?
#12
Originally Posted by lee
well this is how it works. we're setting up an education one-stop-shop basically.
in doing this, we're trying to cover the education sources as much as possible. we pay the sources to allow us free reign to their content and we monitor access based on a login to a portal on our end, which allows them straight in to the providers content.
now.... since we want to hide the source, it doesnt help if their URL is plastered at the start of the titlebar.
thats all it is...
in doing this, we're trying to cover the education sources as much as possible. we pay the sources to allow us free reign to their content and we monitor access based on a login to a portal on our end, which allows them straight in to the providers content.
now.... since we want to hide the source, it doesnt help if their URL is plastered at the start of the titlebar.
thats all it is...
Error: uncaught exception: Permission denied to set property HTMLDocument.title
I see the need for what you are doing, but don't think it's going to be this simple. I think that if you did get this to work for the initial page load, as soon as they click a link on the 3rd party site they would be on a whole new page that would be completely out of your control. I could see writing code to basically mine the data out of a 3rd party page and then turning that into a page of your own that you could control, but that would be a huge undertaking. If I come up with any simpler ideas I'll let you know... sorry.
Thread
Thread Starter
Forum
Replies
Last Post
Sizzle Chest
Pre 84 Trucks (Build-Up Section)
19
May 25, 2009 03:09 AM
Bob_98SR5
Maintenance & Repair
0
Jan 14, 2006 09:21 PM
Bob_98SR5
Performance Enhancements
3
Dec 26, 2005 09:03 PM



