Web Hosting Talk







View Full Version : reload block for popup?


stormsam
12-29-2002, 08:46 AM
Hi @ all,

i have a litte problem!

I want to put a popup on my page, but there are 2 problems:

1. I want to insert everywhere, which means that the popup must have a reload block, (i mean that it is blocked from reloading everytime)!

2. The popup doesn't have a normal url/address but is a JavaScript-code!

How can I insert a reload block (I dunno if it's the right word, but i hope you understand what's it's about) into a popup that is opened through a JavaScript-code?

I would be very glad if one of you helped me?

greetings

stormsam

Syncedit
12-29-2002, 03:21 PM
hmm duno if this could help you but i bumped into it a few minutes ago,

greetz,
cedric

<HTML>
<HEAD>
<SCRIPT Language = "JavaScript">
function myMsgBox(msg) {
//set up window options
stats='toolbar=no,location=no,directories=no,status=no,menubar=no,'
stats += 'scrollbars=no,resizable=no,width=200,height=100'
//open the window
MsgBox = window.open ("","msgWindow",stats)
//set window back color, text color, show msg, and OK button.
MsgBox.document.write ("<BODY bgColor='black' text='white'>")
MsgBox.document.write ("<H2><CENTER>",msg,"</CENTER></H2>")
MsgBox.document.write ("<FORM><CENTER>")
//when reader clicks the OK button in this message window, close the message window.
MsgBox.document.write ("<INPUT type='button' value='OK' onClick = 'self.close()'>")
MsgBox.document.write ("</CENTER></FORM>")
}
</SCRIPT>
</HEAD>

<BODY>
<FORM>
<! Call upon myMsgBox to display a "Howdy World" message.>
<INPUT type='button' value = 'Click me to see a custom message window'
onClick = 'myMsgBox("Howdy World")'>
</FORM>
</BODY>
</HTML>