<html>
<head>
<script type="text/javascript">
<!--
function myPopup() {
window.open( "http://www.youraddress.com/" , "myPopupWindow")
}
//-->
</script>
</head>
<body onLoad="myPopup()">
//
Your html
//
</body>
</html>
could you please give a complete code ?Use window.onclick function to fire a event whenever someone clicks on the page and then use window.open('http://google.com/myurlhere','_newtab'); to open a link in new tab
@Apathetic - great name matches your essence of being.
@Sahibaan
Code:<html> <head> <script type="text/javascript"> <!-- function myPopup() { window.open( "http://www.youraddress.com/" , "myPopupWindow") } //--> </script> </head> <body onLoad="myPopup()"> // Your html // </body> </html>
<?php
add_action('init', 'init_theme_method');
function init_theme_method() {
add_thickbox();
}
?>
<div style="text-align:center;padding:20px;">
<input alt="#TB_inline?height=300&width=400&inlineId=examplePopup1" title="add a caption to title attribute / or leave blank" class="thickbox" type="button" value="Show Thickbox Example Pop-up 1" />
</div>
<div id="examplePopup1" style="display:none">
<h2>Example Pop-up Window 1</h2>
<div style="float:left;padding:10px;">
<img src="http://shibashake.com/wordpress-theme/wp-content/uploads/2010/03/bio1.jpg" width="150" height = "168"/>
</div>
I was born at DAZ Studio. They created me with utmost care and that is why I am the hottie that you see today. My interests include posing, trying out cute outfits, and more posing.
<select name=""><option>test</option></select>
<strong>Just click outside the pop-up to close it.</strong>
</div>
i put it in footer but not work.