The window.open() function creates a new browser window, customized to your own site, without the use of an HTML anchor tag. In this example, we will be making a function that the window.open() function will open automatically when you click on a single button.
HTML & JavaScript Code:
This java script code is excellent for Phishing because this shows a button that once you click it the web browser automatically makes a new tab and mostly if you play Gaiaonline.com because they had been updating their way of hacking free for other users. so i suggest you use this pop up for phishing and other hacking material for your website.Code:<head>
<script type="text/javascript">
<!--
function myPopup() {
window.open( "http://www.gaiaonline.com/" )
}
//-->
</script>
</head>
<body>
<form>
<input type="button" onClick="myPopup()" value="Click Here!">
</form>
<p onClick="myPopup()">Click Here Too!</p>
</body>
window.open( "http://www.gaiaonline.com/" )
when you click the button it goes to the site you put in between the quotes.
JavaScript Window.Open Arguments:
There are three arguments that the window.open function takes:
1. The relative or absolute URL of the webpage to be opened.
2. The text name for the window.
3. A long string that contains all the different properties of the window.
Naming a window is very useful if you want to manipulate it later with JavaScript. But, this is beyond the scope of this tutorial, and we will instead be focusing on the different properties you can set with your brand spanking new JavaScript window. Below are some of the more important properties such as:
* dependent - Subwindow closes if the parent window (the window that opened it) closes
* fullscreen - Display browser in fullscreen mode
* height - The height of the new window, in pixels
* width - The width of the new window, in pixels
* left - Pixel offset from the left side of the screen
* top - Pixel offset from the top of the screen
* resizable - Allow the user to resize the window or prevent the user from resizing, currently broken in Firefox.
* status - Display or don't display the status bar
Dependent, fullscreen, resizable, and status are all examples of ON/OFF properties. You can either set them equal to zero to turn them off, or set them to one to turn them ON. There is no in between setting for these types of properties.
Thank you for looking at my tutorial i am not going to show the updated version of it because i might sell them for LG/Gaia.
if you would like the code for it already in a txt document i had attached it to this thread all you need to do is change it to html and you will see what it looks like.
Sincerely, Domo™.