LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 359 users online 184924 members 367 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Video | Dictionary | News | FAQ
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
3 online / 26 MPM
Fresh Topics
  LiveWire / Technical Forums / Web Design & Search Engine Optimization / Viewing Topic

HTML code for a notification window?
Replies: 3Last Post Aug. 21, 2006 12:04pm by Oxide
Single page for this topic Email Print Favorite
( Zw33K3RB0Y )


Omnipotent One

Patron
Reply
I kept forgetting to ask, now that i finnaly remember...

Any ways.

What is the code for a browser notification window  (the ones that pop-up, and look like a error window)?

-------
░░░░ You know what's annoying?
▒▒▒
▓▓
█ People who don't read signatures.


5:53 pm on Aug. 20, 2006 | Joined June 2006 | 446 Days Active
Join to learn more about Zw33K3RB0Y Nebraska, United States | Straight Male | 9587 Posts | 19410 Points
Jay JWLH


Omnipotent One

Patron
Support Leader
Reply
I think that is scripting, or otherwise a Javascript. Google does this to me when I change my preferences and has something that pops up and tells you that your preferences are saved. You can also imagine executing scripts, so this is probibly the sort of idea you are looking at right?

-------
My good people of LiveWire:
Dig For Fire (ClAcc) | littlenicky40 (DenServ) | Pan
galeharoldishot | CeramicFrog | iloveto | Girl19
HazelEyes (Mod) | Spasty

6:01 pm on Aug. 20, 2006 | Joined Mar. 2006 | 387 Days Active
Join to learn more about Jay JWLH New Zealand | Straight Male | 11093 Posts | 18810 Points
shh

Dairy Product Addict

Patron
Reply
Code:
<html>
<title>TITLE</title>
<head>
<script>

var theURL = 'popup.html';
var width  = 300;
var height = 400;

function popWindow() {
newWindow = window.open(theURL,'newWindow','toolbar=no, (the space does not belong here, it just needs to be because of the 100 character limit, and also the space after this) menubar=no,resizable=no,scrollbars=no,status=no,location=no,width='+width+',height='+height);
}

</script>
</head>
<body onload="popWindow()">


</body>
</html>

Where it says "var theURL" put the URL of what you want to pop-up, then change the height and width according to how big the pop-up is.

And, remember to remove the "(the space does not belong here, it just needs to be because of the 100 character limit, and also the space after this)" and the two spaces.


6:06 pm on Aug. 20, 2006 | Joined Mar. 2006 | 150 Days Active
Join to learn more about shh California, United States | 2599 Posts | 3389 Points
Oxide


Lawn Care Specialist
Reply
if you ment the alert boxes which only give you the option of saying "ok" the following is the correct javascript for it.

Code:
<SCRIPT language="JavaScript">
alert('Welcome to my Web Site!');
</SCRIPT>

However, if you wish for a prompt box that allows the user to click "ok" or "cancel" use this code.

Code:
<SCRIPT language="JavaScript">
function go_there()
{
var where_to= confirm("Do you really want to go to this page??");
if (where_to== true)
{
  window.location="http://yourplace.com/yourpage.htm";
}
else
{
 window.location="http://www.google.com";
 }
}
</SCRIPT>

Hope it helps

-------
http://wwww.atomicoxide.co.uk Webmaster.


12:04 pm on Aug. 21, 2006 | Joined Aug. 2006 | 6 Days Active
Join to learn more about Oxide United Kingdom | Straight Male | 25 Posts | 93 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Web Design & Search Engine Optimization / Viewing Topic