/    Sign up×
Community /Pin to ProfileBookmark

Javascipt code for a popup?

Hello,

I have a popup script that works in Mozilla but does not work in Internet Explorer. Please, maybe someone know how to fix that, becouse i’m not a programmer and i need help…

Scipt is here:

[code=php]<SCRIPT LANGUAGE=”JavaScript” TYPE=”text/javascript”>
<!–
<!–
var newwindow;
function popitup()
{
newwindow=window.open(‘rate.php?id=<?=$r[‘id’];?>’,’Rate <?=$r[‘name’];?>’,’height=400,width=200′);
if (window.focus) {newwindow.focus()}
}

// –>

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//–>
</SCRIPT>[/code]

This should open a popup but it does not. Can someone help, please?

Thanks in advance…

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Aug 21.2005 — Change 'Rate <?=$r['name'];?>'

to

'Rate<?=$r['name'];?>'
Copy linkTweet thisAlerts:
@krikaauthorAug 21.2005 — Thans for the response.

But unfortunately this dosent still work in Internet Explorer.


Maybe i have to change the link in my button, at the moment it is:
[code=php]<a href="javascript:popitup();"><img src="images/rate.gif" width="64" height="19" border="0" align="absbottom">[/code]

I dont understand why it works in Mozilla and in other browsers but on in IE.
×

Success!

Help @krika 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.8,
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,
)...