473,804 Members | 2,673 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why does ie give me an 'object expected' error when I use the window.open() function?

5 New Member
I am using the window.open() function to open a music player from my website. It works perfectly in firefox and chrome but ie is giving me an 'object expected' error.

Here's my code, and you can access it at
www.oceanmanmus ic.com/audio.html

<SCRIPT language="JavaS cript1.2">
function openwindow1()
{
window.open("tr iparoundtheworl d.html","mywind ow",
"menubar=1,resi zable=1,width=3 33,height=333") ;
}
</SCRIPT>

<a href="javascrip t: openwindow1()">
<img src="images/photos/triparoundthewo rld.gif"/>
</a>

Any help would be greatly appreciated.

Best,
Brad
Dec 27 '10 #1
3 3072
AutumnsDecay
170 New Member
I did some testing on my machine, and the reason is because of the <object> tag.

Any reason you're using this in the first place? It's not a widely supported element, and typically only works in IE. At any rate, your structuring of the element is incorrect.

Check out this site: ->here<-

I'd remove the <object> tags all together. You shouldn't notice any difference at all.
Dec 27 '10 #2
brad atefi
5 New Member
Thanks so much. I took the object tag out and now it works in ie.

Best,
Brad
Dec 27 '10 #3
AutumnsDecay
170 New Member
Perfect. Glad this helped you out.

Please be sure to choose the answer that helped you solve your problem.
Dec 27 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2290
by: TAM | last post by:
Hi, I have a simple JavaScript code that ensures that all the form fields are filled and there is also a function that checks if the email is a valid address. For some reason IE is giving "Object Expected" error on the alert statement. The same code doesn't give an error in NN or Opera or Mozilla or FireFox. Can someone give me a clue as what could be wrong here?
0
3485
by: Kavitha N via DotNetMonster.com | last post by:
I have 2 frames in my web page. The top frame is just a jscript file which contains the menu items. The bottom frame changes based on the selected menu. I have added this piece of code in my top JS file function HandleOnClose(arr) { txt = window.parent.frames.document.getElementById('txtClose'); btnSubmit = window.parent.frames.document.getElementById('btnSubmit'); if (txt.value != "")
4
3154
by: Kiyomi | last post by:
Hello, I am trying to replace my alert message box with a popup page. In my page behind,
1
2336
by: =?Utf-8?B?QUs=?= | last post by:
I have a problem with some japanese characters. When the two Japanese characters ー and ジ are used in the window name parameter of the window.open function, the expected new browser window does not open. This needs to be tested on localised Japanese operating system. The problem only happens on IE7 browsers (on all operating systems). IE6 works ok. Is this a known issue? Any suggestions for a possible solution?
1
3918
by: JOJO123 | last post by:
I got here in search of an answer to this Javascrpt question. I upgraded jave on XP Ie 7, acrobat 5.1 and suddenly can't open any pdf files on web sites using IE. I see u guys all say, this is a Javscript issue. but how do we, mere mortals who know nothing of anything about Java, scripts, etc, fix this? Is there a programm, does MS have any fix? is there any tweak like in the Registry, or whatever, how do I access anyihint java without in IE 7...
1
2639
by: tgorton | last post by:
I am having a problem running a javascript function as part of an html-el:form onsubmit. The problem seems to exists in IE6 but not in Firefox. html: <html-el:form action="${target}" onsubmit="return testTheForm(this)"> javascript function: <script type="text/javascript"> function testTheForm(theForm){
4
5739
by: phanimadhav | last post by:
hai this is sudheer.I don't know how to use googlmaps .I am serching in net but its not working in my application one error was occur at the executionTime Objectexpected.This is the url http://www.codeproject.com/useritems/Use_of_Google_Map.asp <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
1
1609
by: Lysandra | last post by:
I have 2 JSP Pages on an upper and a lower frame respectively in my application. Some of the links on the Upper frame populate new pages on the lower frame. We need to redesign our application in Java/J2EE and now have the new part of it in Java and the older version in Perl. When I open the perl page links from the upper JSP Page, they open correctly, bur I am not able to open any other link from the Upper JSP Page thereafter because I...
1
1750
by: finizaini | last post by:
I'm receiving an "Object Expected" Error (Line:309, Char:0). I'm confused as to what is happening.Also, I can't run this code using other browser such as Fire Fox. Thispage only can view using IE. Is there something that I'm missing? The error is pointing to <textarea name="tairbillno" cols="25" rows="4" wrap="HARD" id="tairbillno" ONKEYDOWN="return checkMaxRow(this, 10)"></textarea> Here is my code below: <HTML> <HEAD>...
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.