/    Sign up×
Community /Pin to ProfileBookmark

Problems with window.open

I’m trying to use the window.open statement to bring up a window with a music player, and the window opens just fine. But the page in the main window somehow starts trying to load [url]http://members.cox.net/tfa-kh/no[/url] instead of the rest of the file located at [url]http://members.cox.net/tfa-kh/home.html[/url. The code states…

[code=php]<script type=”text/javascript”>window.open(‘http://members.cox.net/tfa-kh/music2.html’)</script>[/code]

I’ve got it in the <head> commands of my page along with a title and <link rel> command to include my stylesheet. Any help is greatly appreciated.

Edit: Sorry… I fixed it. I have no idea what the problem was up there. Please ignore all of this.:mad:

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@CharlesJan 17.2005 — Use:

[font=monospace]<a href="http://members.cox.net/tfa-kh/music2.html" onclick="window.open(this.href, 'child'); return false">Music</a>[/font]
×

Success!

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