PDA

View Full Version : Popup Box II IE



windowontheweb
02-21-2005, 06:07 AM
This question is regarding the "Popup Box II IE" script ( http://dynamicdrive.com/dynamicindex11/abox2.htm ).
The purpose I am using it for would be best served by having the script activated 'onClick' only (e.g., by clicking a link) rather than 'onLoad'. I found out that I can activate it 'onClick' by adding the following link: '<a href="javascript:showbox('Div')">'; however, it still pops up when the window loads. I would like to know if anyone can tell me how to disable the 'window.onload' function and still be able to activate the script by clicking on a link or a linked image. Thank you.

cr3ative
02-21-2005, 04:57 PM
Just remove this


<script>

window.onload=function(){
new popUp(250, 50, 350, 175, "box1"...
new popUp(250, 50, 350, 175, "box2"...
}

</script>

From your HTML.

cr3ative