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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

windows.close OK if FireFox - NOT GOOD if IE ??? 1

Status
Not open for further replies.

josel

Programmer
Oct 16, 2001
716
US
Working on page where user is placed on new page without scroll, resize, bars ...

While in this page, user can do data entry and submit form or click <input type="button" ... /> which has "... onclick="window.close();" ... This works just fine in FireFox but not in IE 6.0

Is there something I must account for to make work cross browser?

Thanks,


Jose Lerebours


KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
That did it!

I found that I never had the onclick="..." method, I was relying on <a href="javascript: window.close();" ...> to do the trick.

Funny how it worked on one browser and not the other. Once I put the onclick method in my <a ...> tab, problem was solved.

Thank you so much!


Jose Lerebours


KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top