Umm just the code for a pop-up as soon as you go on a site, and you have to click, Ok, Cancel or 'X' ;) and you can customize the message...
This is all javascript no HTML ones right? ...
thx..
Printable View
Umm just the code for a pop-up as soon as you go on a site, and you have to click, Ok, Cancel or 'X' ;) and you can customize the message...
This is all javascript no HTML ones right? ...
thx..
<scriptlanguage="JavaScript">
function loadalert ()
{alert("Message")
}
</script>
<bodyonLoad="loadalert()">
Put this in the body of your site.
wait, this site has like enter HTML but it wouldn't work right?
or just
<script type="text/javascript">
document.onload.alert('message');
</script>
EDIT:
What exactly do you need it to do?
Popup when you go on a site, and redirect if click ok, or cancel. This supports HTML, so I don't think it'll work..
Try it. That code is a javascript popup.
Agred with above. The above code is a javascript popup.
Well I did ask, the site has a HTML box and a normal no HTML box only (HTML disabled), so I don't think it will work right?.... I did try it.
I will upload that code to a file on my website to prove it works.
Ok.... But I asked something, so answer it.. :l
http://www.callumcarolan.co.uk/thbb/news/alert.htm
code:
<script type="text/javascript">
alert('hello');
</script>
This new one works :)! Thanks, is there one where you have to click OK or CANCEL.. ok redirects to one site, and cancel redirects to another +REP!
I haven't tested it.HTML Code:<script type="text/javascript">
function changepage( page ) {
var confirm = confirm("Change the page to: " + page + " ?");
if (confirm){
window.location = page;
} else {
return false;
}
}
</script>
<a href="page.html" onclick="changepage('page.html');">Change Page to page.html?</a>
Nice site you've got going on there Callum. :)