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.
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.