Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7841133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:02:00+00:00 2026-06-02T16:02:00+00:00

have a a problem with opening a new window using javascript. In Chrome and

  • 0

have a a problem with opening a new window using javascript. In Chrome and Firefox this works great but IE gives wrong url.

The link is located on a page like this:
http://www.CORRECTURL.com/SEOKEYWORD/SONGID/SONGNAME.html

The link:

<a href="javascript:void(0)" onclick="window.open('extraListen.php?visa=<?php echo($songID); ?>','welcome','toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=748, height=660, left = 300, top = 100')">Listen</a>

In chrome/firefox this opens: http://www.CORRECTURL.com/extraListen.php?visa=19
In IE this opens: http://www.CORRECTURL.com/SEOKEYWORD/SONGID/extraListen.php?visa=19

When the “seokeyword” and “songid” is added to the link, the new page cant be found, but I dons understand how IE can just add this in the url and chrome, firefox doesn’t!??

BTW I have the following htaccess:

Options +FollowSymLinks
RewriteEngine on
RewriteRule midsommarvisor/(.*)/(.*)\.html$ index.php?visa=$1&midsommarvisa=$2 [L]
RewriteRule sitemap\.xml sitemap.php [L]
RewriteRule rss\.xml rss.php [L]
RewriteRule (.*)/(.*)\.html$ index.php?fel=$1&page=$2 [L]
RewriteRule (.*)\.html$ index.php?page=$1

I don’t know where to start…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:02:01+00:00Added an answer on June 2, 2026 at 4:02 pm

    As I touched upon on my comment. I believe that the problem here is with your url not starting with a forward slash /. Try the following in your onclick event:

    onclick="window.open('/extraListen.php?visa=<?php echo($songID); ?>'
    

    the problem is that without the slash at the start, some browsers do not recognise it as a root path URL and will therefore try to append it to the current request path, as opposed to appending it to the domain name only.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with IE8 and the opening of a new window with
I have a problem with opening CF.NET forms using VSTS 2008. It uses the
I have a problem here with this code. I'm opening a socket, then listening
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I have a problem with browsers window managament with javascript. I have two page
I'm opening a new window via a javascript POST in response to a user
We're having a problem getting Word documents to download in IE7/IE8 using window.open calls.
I have a batch file that creates a scheduled task using schtasks like this:
I'm new to WPF so this is probably a pretty easy problem. I open
I have an issue with a simple program. I'm opening a QFileDialog this way:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.