Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JS not working

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL
Hi people,
Here's my question:
I have this JS line that opens a new HTML.It workes on one of my pages but not in the index page. I can't figure this out.

Here it is:
<code>
<a href="javascript:;" onClick="MM_openBrWindow('1.html','Demo','width=820,height=580')"><img src="btn_arrow.gif" border="0"/></a>
</code>

I'd appreciate your help
 
You need to ensure that the function MM_openBrWindow() is defined on your page. Look for the <script> elements (usually in the <head> section) on the page it does work... and compare it to the page that doesn't.

The code (as it is) appears fine.

Cheers,
Jeff

[tt]Visit my blog [!]@[/!] Visit Code Couch [!]@[/!] [/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Thanks Jeff!
That was the problem
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top