Post: Need help with JavaScript
04-23-2011, 06:05 PM #1
Mr Hankey
◕‿◕
(adsbygoogle = window.adsbygoogle || []).push({}); Hey, I've made this little javascript for in my html.. but it don't seem to work..

U can try it out, the buttons are there but when clicking they don't popup..

    

<html>
<head>
<title> Hello </title>
<script language="JavaScript">

var Google="https://www.google.com";
var NextGenUpdate="https://www.nextgenupdate.com";
var Hackforums="https://www.hackforums.net";
var Youtube="https://www.youtube.com";
var P33tr94 Deface="https://pastehtml.com/view/1e5sedu.html";
function popup(url){
myWin= window.open ('', '',
'width=500,height=300,toolbar=no,scrollbars=yes,menubar=yes,resizable=yes,location=yes'Winky Winky;
myWin.document.write('<html><head><title>Laden....'Winky Winky;
myWin.document.write('</title></head><body bgcolor="Yellow">'Winky Winky;
myWin.document.write('<div align=center><h2>'Winky Winky;
myWin.document.write('Bezig met laden....'Winky Winky;
myWin.document.write('</h2></div>'Winky Winky;
//juiste pagina opzoeken
myWin.location.href=url;
}
funtion sluit(){
myWin.close();
}
</script>
</head>
<body>
<h2> Hi </h2>
<hr>

<form name="formulier">
<input type=button value="open Google" onClick="popup(Google)">
<input type=button value="open NextGenUpdate" onClick="popup(NextGenUpdate)">
<input type=button value="open Hackforums" onClick="popup(Hackforums)">
<input type=button value="open Youtube" onClick="popup(Youtube)">
<input type=button value="open P33tr94 Deface" onClick="popup(P33tr94 Deface)">
</form>
</hr>
</body>
</html>



Thanks:plank:
(adsbygoogle = window.adsbygoogle || []).push({});
04-23-2011, 06:10 PM #2
cause maybe you made something wrong :confused:
04-23-2011, 06:14 PM #3
Mr Hankey
◕‿◕
Originally posted by nakoolak View Post
cause maybe you made something wrong :confused:


Yep I did something wrong 100% sure, because.. it doesn't work.. that's why I'm asking the NGU community Smile
04-23-2011, 06:32 PM #4
Originally posted by P33tr94 View Post
Yep I did something wrong 100% sure, because.. it doesn't work.. that's why I'm asking the NGU community Smile


try figure it out how it works and if it's you're problem work it out cause we had no idea what is that :confused:
04-23-2011, 06:46 PM #5
Mr Hankey
◕‿◕
Originally posted by nakoolak View Post
try figure it out how it works and if it's you're problem work it out cause we had no idea what is that :confused:


copy paste into notepad and save as .html and u see what i mean?
04-23-2011, 07:42 PM #6
<Jimbo>
</Jimbo>
I thought that script was a bit messy! Winky Winky So I re-coded it! :p

I probably removed some functions... Just tell me exactly what you wanted to happen... Anyway here is a neater version using Javascript actions! :p That saves me trynna fix your's! Awesome face

    <html>
<head>
<title> Hello </title>
<style type="text/css">
<!--
body {
background-color: #FFFF00;
}
-->
h1 {
color: #FF0000;
font-size: 20;
font-family: Georgia, "Times New Roman", Times, serif;
text-align: Center;
}
h2 {
color: #FF0000;
font-size: 15;
font-family: Georgia, "Times New Roman", Times, serif;
text-align: Center;
}
</style>
</head>
<body>
<h2>
P33tr94
</h2>
<hr>
<form><input type="button" value="Google" onclick="javascript:void( window.open('https://www.google.com'))"></a>
<input type="button" value="NextGenUpdate" onclick="javascript:void( window.open('https://www.nextgenupdate.com'))"></a>
<input type="button" value="Hackforums" onclick="javascript:void( window.open('https://www.hackforums.net'))"></a>
<input type="button" value="YouTube" onclick="javascript:void( window.open('https://www.youtube.com'))"></a>
<input type="button" value="P33tr94 Deface" onclick="javascript:void( window.open('https://pastehtml.com/view/1e5sedu.html'))"></a></form>
</hr>
</body>
<h1>Hi
</h1>
</body>
</html>


Originally posted by P33tr94 View Post
Hey, I've made this little javascript for in my html.. but it don't seem to work..

U can try it out, the buttons are there but when clicking they don't popup..

    

<html>
<head>
<title> Hello </title>
<script language="JavaScript">

var Google="https://www.google.com";
var NextGenUpdate="https://www.nextgenupdate.com";
var Hackforums="https://www.hackforums.net";
var Youtube="https://www.youtube.com";
var P33tr94 Deface="https://pastehtml.com/view/1e5sedu.html";
function popup(url){
myWin= window.open ('', '',
'width=500,height=300,toolbar=no,scrollbars=yes,menubar=yes,resizable=yes,location=yes'Winky Winky;
myWin.document.write('<html><head><title>Laden....'Winky Winky;
myWin.document.write('</title></head><body bgcolor="Yellow">'Winky Winky;
myWin.document.write('<div align=center><h2>'Winky Winky;
myWin.document.write('Bezig met laden....'Winky Winky;
myWin.document.write('</h2></div>'Winky Winky;
//juiste pagina opzoeken
myWin.location.href=url;
}
funtion sluit(){
myWin.close();
}
</script>
</head>
<body>
<h2> Hi </h2>
<hr>

<form name="formulier">
<input type=button value="open Google" onClick="popup(Google)">
<input type=button value="open NextGenUpdate" onClick="popup(NextGenUpdate)">
<input type=button value="open Hackforums" onClick="popup(Hackforums)">
<input type=button value="open Youtube" onClick="popup(Youtube)">
<input type=button value="open P33tr94 Deface" onClick="popup(P33tr94 Deface)">
</form>
</hr>
</body>
</html>



Thanks:plank:

The following user thanked <Jimbo> for this useful post:

Mr Hankey
04-24-2011, 06:45 PM #7
Mr Hankey
◕‿◕
Originally posted by RGB
I thought that script was a bit messy! Winky Winky So I re-coded it! :p

I probably removed some functions... Just tell me exactly what you wanted to happen... Anyway here is a neater version using Javascript actions! :p That saves me trynna fix your's! Awesome face

    <html>
<head>
<title> Hello </title>
<style type="text/css">
<!--
body {
background-color: #FFFF00;
}
-->
h1 {
color: #FF0000;
font-size: 20;
font-family: Georgia, "Times New Roman", Times, serif;
text-align: Center;
}
h2 {
color: #FF0000;
font-size: 15;
font-family: Georgia, "Times New Roman", Times, serif;
text-align: Center;
}
</style>
</head>
<body>
<h2>
P33tr94
</h2>
<hr>
<form><input type="button" value="Google" onclick="javascript:void( window.open('https://www.google.com'))"></a>
<input type="button" value="NextGenUpdate" onclick="javascript:void( window.open('https://www.nextgenupdate.com'))"></a>
<input type="button" value="Hackforums" onclick="javascript:void( window.open('https://www.hackforums.net'))"></a>
<input type="button" value="YouTube" onclick="javascript:void( window.open('https://www.youtube.com'))"></a>
<input type="button" value="P33tr94 Deface" onclick="javascript:void( window.open('https://pastehtml.com/view/1e5sedu.html'))"></a></form>
</hr>
</body>
<h1>Hi
</h1>
</body>
</html>


yeey exactly what I was looking for thx! (btw: learned the script from javascript 1.5 book...)
04-24-2011, 07:13 PM #8
<Jimbo>
</Jimbo>
You're welcome! :y: Yeah, some of the functions wernt linked properly and the better way of opening a javascript statement within <html> is:
    <script type="text/javascript">
javascript: statement;
</script>


You must login or register to view this content. is really good for web design! Smile

If you ever need any help like this feel free to PM/VM me Winky Winky
Originally posted by P33tr94 View Post
yeey exactly what I was looking for thx! (btw: learned the script from javascript 1.5 book...)

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo