/    Sign up×
Community /Pin to ProfileBookmark

How to keep popup from showing URL in title bar for Firefox?

The JavaScript snippet below creates a popup browser window for a picture. I got the script from an old Dreamweaver 3.0 version software program.

The title bar for the popup windows does the way I want it to in the IE browser. But it shows the URL of the web site in the Firefox browser. For example, the title bar will show the following: “http://www.MyDomain.com – Picture Display – Mozilla Firefox”

Can anybody tell me how to keep the URL from showing in the Firefox popup window?

[quote]

<html><head>
<title>Picture Display</title>
<script language=”JavaScript”>
function MM_openBrWindow(theURL,winName,features) {
PictureWindow = window.open(theURL,winName,features);
PictureWindow.focus()

}
</script>
</head>
<body>

<a href=”#” onClick=”MM_openBrWindow(
‘ShowPicture.php?id=10’,
‘PictureWindow’,’scrollbars=yes,resizable=yes,width=650,height=525,left=50,top=15′); return false” onMouseOver=”window.status=’Popup Window’;return true” onMouseOut=”window.status=”;return true”><img src=”Picture.gif”></a>
</body></html>

[/quote]

Thanks.

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@Angry_Black_ManAug 18.2007 — good question.

i honestly dont know. i expect that it isnt controlled by javascript, but ive been wrong before!
Copy linkTweet thisAlerts:
@felgallAug 19.2007 — JavaScript specifically has NO ACCESS to that at all as that would be a major security breach. It is fully under the control of the browser owner except in those browsers that don't even allow the browser owner to turn it off.
Copy linkTweet thisAlerts:
@KnoxVolauthorAug 19.2007 — aaron.martinas, felgall;

Thanks for responding to my question.

I found a manual for JavaScript. It's on the Netscape web site:

http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/

I've been spending my efforts trying to learn PHP. I'm just now starting to learn a little bit more about JavaScript.

As far as I know there is not an official JavaScript manual like there is a PHP Manual. JavaScript was invented by the folks who invented the Netscape browser I think. The manual (link above) on their web site should be an authoritative source but I'm not sure.
Copy linkTweet thisAlerts:
@Mr_MooAug 20.2007 — I assume your developing the site on your local machine and finding that in IE you can hide the address bar, but in FF not. You'll find that when you host the site on a server, IE will also show the address bar. This is for various security reasons (crackers broke the Internet). There are specific browser settings that allow (or deny) remote sites these types of capabilities. You cannot expect your users to have them enabled (they are not default).
Copy linkTweet thisAlerts:
@felgallAug 20.2007 — The official standards manual for JavaScript can be found at http://www.ecma-international.org/publications/standards/Ecma-262.htm
×

Success!

Help @KnoxVol 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...