Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop up Window with JavaScript 1

Status
Not open for further replies.

usakjw

Programmer
Sep 8, 2005
47
US
I need a Javascript app that when a user clicks on a link a small window pops up in the center of the screen. I do not need the menu bar or anything link that just the window. I had this but when I first designed the site I did not like the final product redesigned and in doing so I lost this. I do not remember how it was done. I know that it is simple and does no take but a few lines of code.

KJW
 
Ummm this is the VB Forum...

But the Java Script you are looking for is.

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=500');");
}
</script>


<form>
<input type=button value="Open the Popup Window" onClick="javascript:popUp('</form>



Casper

There is room for all of gods creatures, "Right Beside the Mashed Potatoes".
 
Sorry I program in VB as well I musst have been think about one thing and doing another.

KJW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top