View Single Post
Old 04-16-2007, 08:06 PM   #2 (permalink)
spindles
Mine is an evil laugh
 
spindles's Avatar
 
Location: Sydney, Australia
Quote:
Originally Posted by MexicanOnABike

ok, i got a question that might be easier: let's say i have a link or button(image) in html, is there a way to trick it to auto click itself when you visit the page? like an action?
You could write a javascript function that uses window.open to popup a new window and then add this function to onload on the body of the HTML page.

This is a URL about window.open:
http://www.javascript-coder.com/wind...dow-open.phtml

and on body onload:
http://www.htmlcodetutorial.com/docu...DY_onLoad.html
__________________
who hid my keyboard's PANIC button?
spindles is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46