align in javascript
- Started
- Last post
- 8 Responses
- steadyvibe
does anyone know how to make a popup window open in the center of the page? with javascript?
- steadyvibe0
this is my code. its in flash:
on (release) {
getURL("javascript:spawnWindow...
}
- gravityroom0
You need another line of code to position your window. There are a ton of ways to do it. I'd find a site that works like you want, then look at how they coded it.
Or whip out the O'Reily book.
- steadyvibe0
haha of course when i want to find a site like that i cant!
- okie0
you could use the following to make your left and top values center the new window.
myleft=(screen.width)?(screen.wi...
mytop=(screen.height)?(screen.he...hope NT did not messed up the code.
- steadyvibe0
i want it to be cedntererd in all screen resolutuons though
- gravityroom0
That won't work on some browsers anyway.
Here's one... don't say I never gave you anything ;-)
- steadyvibe0
oh god. i cant read through all that. its it simple??
- okie0