Hey guys. 2 Questions? 1. On a site called Ro2.biz (Paid to chat) There is a support us button inwhich you open it and it refreshes the page I think. Can someone give me an idea as to how this works? 2. Some websites open a popup where its a tiny window (Shrinked as small as can be) and it plays a youtube video. How is this done? Thanks in advance guys!
Is this what you want? <form> <input type="button" value="New windows" onClick="window.open('http://forums.digitalpoint.com/showthread.php?t=2017369#post15376381','mywindow','width=400,height=200')"> </form> Code (markup):
Dude yea. But whats the code etc? Can you make it so its not a button? I wanted it so that one code to show how the button would work as a popup and a seperate code to make a hidden popup? Thanks dude
<html> <head> <script type="text/javascript"> <!-- function Popup() { window.open("http://www.youtube.com/", "Window", "status = 1, height = 300, width = 300, resizable = 0") } //--> </script> </head> <body onLoad="Popup()"> <form><input type="button" onClick="Popup()" value="As a button"></form> <a onClick="Popup()">As a link</a> </body> </html> Code (markup): If you dont want it to load when the page opens, just remove the <body onLoad="Popup()"> part.