/    Sign up×
Community /Pin to ProfileBookmark

Very Very Strange Popup Problem

Hi,

I have a strange pop-up problem. First let me display the code,

[CODE]

function addLink(){
document.getElementById(‘TESTME’).innerHTML= “<br><span id=me><a href=# onclick=”window.open(‘http://www.yahoo.com’,’name’,’height=255,width=250,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no’)”>TEST LINK</a></span>”;
}

[/CODE]

This code works perfect in an empty page with <div id=”TESTME”>…</div>

But when I copy/paste the same code in to actual site of mine(without changing even a bit), it doesn’t work at all. 😡

I mean in my actual site, I get the link and everything setted up as I wanted but it doesn’t open a pop-up.When I change it to an ordinary link with <a href=.. target=_blank>…. </a>, It again works fine.

But I want just an ordinary pop-up to be displayed ? which I couldn’t do.

Any idea or suggestion!!!?

Thanks

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@KorOct 16.2006 — try:

onclick="window.open(........)[B][COLOR=Blue];return false[/COLOR][/B]"
Copy linkTweet thisAlerts:
@RonnyZennauthorOct 16.2006 — I tried it just now, it works in test page but again does't work in actual one ?
Copy linkTweet thisAlerts:
@RonnyZennauthorOct 16.2006 — here is a funny thing, I figured out just now, the page is a PHP file, but mostly contains HTML codes in it, just in 2 places there are PHP script written(one print one session), when I remove these PHP lines,pop-up script works fine but what is the real problem? why can I use simple pop-up script when there is couple lines of PHP?
×

Success!

Help @RonnyZenn 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.25,
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,
)...