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

onload + XP problem

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
GB
i am using the following script:

<SCRIPT FOR="window" EVENT="onLoad" LANGUAGE="javascript">
some scripting here
</script>

Everything works fine bar a couple of XP based browsers where the above works but then no popup-windows (from a link) work! Where if I remove the above the popup-windows work fine (And I do have to remove everything as ist seems that is is the <SCRIPT FOR="window" EVENT="onLoad" LANGUAGE="javascript"> part which is stopping everything)! What is going on??

please anyone?!?
 
I don't know why it's not working for you, but try this instead:
Code:
<SCRIPT LANGUAGE="javascript">
window.onload = function(){
  some scripting here
}
</script>

Adam

There's no place like 127.0.0.1
 
it's not working because you probably have an onload function that opens a popup window. this is disabled in many "smart" browsers (non-IE) and now, even crappy IE 6 browsers with SP2 installed.

*cLFlaVA
----------------------------
[tt]your mom goes to college[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top