/    Sign up×
Community /Pin to ProfileBookmark

Removing Domain Names from Popups

Hey guys,

Check this out:
[url]http://www.sugarsports.com/adGallery/test/photoGallery2.html[/url]

Click download. You’ll see that the title on the popup contains the domain that the pop up page is hosted on… how can I remove this? I’ve been googling for some time and I can’t find a solution.

I’ve heard a lot of people say that this is impossible to fix. However, some weird Adobe Golive component managed to remove the title on my client’s homepage ([url]http://www.sugarsports.com[/url]) so it is definitely possible… I just don’t know how.

I’d appreciate any help. Thanks.

to post a comment
JavaScript

12 Comments(s)

Copy linkTweet thisAlerts:
@KorDec 02.2005 — give the popup page a title, at least a character, a dot, something...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<title>.</title>
Copy linkTweet thisAlerts:
@doodler85authorDec 02.2005 — I'm afraid that's not the problem.

If you click download, you'll see that I do give it a title, but the title follows a http://biz.dimlightstudios.us domain name. That domain name is what I want to get rid of.

Thanks
Copy linkTweet thisAlerts:
@felgallDec 02.2005 — That is under the control of the browser and not the web page. You can change that browser setting for when you view the page by disabling part of your system security.
Copy linkTweet thisAlerts:
@doodler85authorDec 02.2005 — That is under the control of the browser and not the web page. You can change that browser setting for when you view the page by disabling part of your system security.[/QUOTE]

Hmm. Do you see the domain on the main pop-up for www.sugarsports.com ?

I'm not sure if I adjusted my browser, but I am pretty sure that there is some script used there to get rid of the domain -- I'm just not sure what.
Copy linkTweet thisAlerts:
@SpectreReturnsDec 02.2005 — Maybe there is, but to do it they've got a maaaajor hack going on:

[url=http://validator.w3.org/check?uri=http://www.sugarsports.com/]They're making up elements![/url]
Copy linkTweet thisAlerts:
@doodler85authorDec 03.2005 — Maybe there is, but to do it they've got a maaaajor hack going on[/QUOTE]

Yeah, that's what I was thinking... I'm just hoping someone here knows a way to trick the browser like that.
Copy linkTweet thisAlerts:
@KorDec 05.2005 — 
Hmm. Do you see the domain on the main pop-up for www.sugarsports.com ?
[/quote]

I see, as I use Mozilla Firefox...
Copy linkTweet thisAlerts:
@ScriptageDec 05.2005 — What are the values that you pass to the pop win function?

Do you pass the entire url of the page... ie http://biz.dimlight.......

If so try referencing it as a relative url and host it on the same domain (if it already isn't).

So: source in the popwin function would be "photoPop.html" instead of "http://biz.dimli......"

May not work... just a thought
Copy linkTweet thisAlerts:
@ScriptageDec 05.2005 — Another thing you could do is have a page, ie photoPop.html, hosted on sugarsports.com and have an iframe in this page with the url as biz.dimlight.... this would solve the problem.
Copy linkTweet thisAlerts:
@doodler85authorDec 05.2005 — I like the iframe idea, scriptage. The hacks involved with actually removing the domain would probably kill cross-compatibility with browsers and systems, and I don't want to have to deal with my client's host (who turned off variable-passing with their PHP).

Thanks! I can't believe I didn't think of that idea :eek:
Copy linkTweet thisAlerts:
@ScriptageDec 05.2005 — No problem ?
Copy linkTweet thisAlerts:
@jr1Dec 05.2005 — This is normal behaviour for browsers. The only thing the browser knows when the window opens is the URL. Once it starts downloading the HTML document, then it'll pick up the title from the code.

I don't think there's really anything to do about that. Maybe give the window a name in the window.open, e.g. window.open('http://someurl','SUGARSPORTS','parameters');

Just a thought and I could be wrong.
×

Success!

Help @doodler85 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...